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.
Column Sorting Configuration
External Sorting
For advanced use cases, you can handle sorting externally - perfect for server-side sorting, API integration, or custom sorting logic. This demo shows how to manage sorting completely outside the table component.
External Sort Status: No sorting applied
External sorting provides two key benefits:
- API Integration: Use
onSortChangeto trigger server-side sorting while keeping the table's UI sorting indicators. - Complete Control: Use
externalSortHandling=to disable all internal sorting and provide your own pre-sorted data.