tsimport {useTableSortable} from '@astryxdesign/core/Table'
| Param | Type | Description |
|---|---|---|
sortrequired | TableSortState<TSortKey> | Current sort state. Ordered array of {sortKey, direction} entries. First entry is the primary sort. |
onSortChangerequired | (sort: TableSortState<TSortKey>) => void | Called when the user clicks a header cell to change sort. |
allowUnsortedState | boolean (default: false) | Allow cycling back to unsorted. When true: asc, desc, unsorted. When false: asc, desc, asc. |
isMultiSortEnabled | boolean (default: false) | Enable multi-sort via Shift+click. Regular click still replaces the entire sort state. |