Sorting
Sorting is on by default. Click a header to sort ascending, again for descending, and a third time to clear it. Hold
Shift to sort by several columns. aria-sort is set on the header.
<MaterialHeadlessTable {columns} {data} enableMultiSort={false} initialState={{ sorting: [{ id: 'age', desc: true }] }} />enableSorting={false}turns it off;enableSorting: falseon a column excludes that column.sortValuechanges what is compared, for example to sort dates stored as text:{ accessor: 'date', header: 'Date', sortValue: (value) => Date.parse(value) }.table.setSorting(id)andtable.clearSorting(id)sort from your own buttons.