Documentation
Column Sorting
Column sorting allows users to organize table data in ascending or descending order based on column values. This feature is essential for data analysis and quick information retrieval.
Basic Sorting
To enable sorting for a column, add the isSortable: true
property to your column definition.
React TSX
1
Sorting Properties
isSortable
: Enables sorting for the columnsortDirection
: Current sort direction ('asc' | 'desc' | null)onSort
: Callback function when sort direction changes
Custom Sort Functions
You can provide a custom sort function using the sortFn
property. This allows you to implement complex sorting logic for your data.