Extend 'SortingFn' API with direction #4663
Unanswered
martinboksa
asked this question in
Ideas
Replies: 2 comments
-
That would be a great idea :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'd be happy to pick this up, if it were to be approved. Currently we are using the following as a workaround:
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
It would be very nice to extend sorting fn with direction.
My use case:
My table contains 2-row types: 'sets' and 'items'. And I need to sort only 'items' which are children of 'sets'. It means 'sets' have always the same position and only their items change positions. This works perfectly
PROBLEM: Item has a special rule that 'undefined' value should be always at the bottom and I cannot do it without 'sort direction' in API
How?
Pass parameter
isDesc
to function :)table/packages/table-core/src/utils/getSortedRowModel.ts
Line 72 in 4e3e735
Thank you, guys! 🙏
Beta Was this translation helpful? Give feedback.
All reactions