Sort via prop
#2138
-
Can someone smarter than me help figure out how I can pass in a column ID for the table to be sorted by? I'm my particular case I have a element sitting in a parent component, when this changes I'd like the table to be sorted via the value that is selected. Any advise or a code sandbox would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
gargroh
Apr 11, 2020
Replies: 1 comment
-
This can help you here https://github.com/tannerlinsley/react-table/blob/master/src/plugin-hooks/useSortBy.js#L359 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kurtnz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can help you here https://github.com/tannerlinsley/react-table/blob/master/src/plugin-hooks/useSortBy.js#L359