Replies: 1 comment
-
A fix that I am using to incorporate the isSortedDesc flag was to use
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem: The sort function that is passed via parameters to the provided
orderByFn
always sorts the data Asc. Is this correct, and if so how do I make it so it responds to thedesc
flag?Reading through the code I found this comment above the returned sort function from React-Table. This is returned as an array and passed through as the first parameter of orderByFn.
So on each click the column is always sorted Asc, instead of switching between the two. What should I do differently or am I missing something?
Here is my custom sort function that is
memoized
and consumed byReact-Table
as orderByFn.Beta Was this translation helpful? Give feedback.
All reactions