Customizing sorting in react table. Toggle Sortby
By default, React Table sorts the data in ascending order when the user clicks on a sortable column.
I want to reverse the order,
instead of sorting unsorted -> ascending -> descending
i want: unsorted -> descending -> ascending
I have this versions:
"react-table": "^7.8.0",
"react-table-plugins": "^1.3.4",

1 Reply
sensitive-blue•2y ago
Sorting | TanStack Table Docs
State
Sorting state is stored on the table using the following shape: