Can you retain/enforce an initial sorting rule in one column regardless of the sort order in another for a grouped table? #3066
-
I have a grouped table which has an initial sorting rule:
The table itself is grouped by
I have enabled sorting by the
But this recursively sorts the whole table by
Is this possible? Or to put it another way is it possible to set the sort order of one column programmatically from another? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to do this by using: https://react-table.tanstack.com/docs/faq#how-can-i-manually-control-the-table-state
:) |
Beta Was this translation helpful? Give feedback.
I managed to do this by using:
https://react-table.tanstack.com/docs/faq#how-can-i-manually-control-the-table-state
useControlledState
and merging the sort order for Risk Grouping with any other manual sorting.:)