Replies: 2 comments 1 reply
-
I guess another approach is to fall back on getAutoSortingFn in globalFuzzySort, but what is the best way to get a Column from a row by column id? // I see _getAllCellsByColumnId is private
// perhaps...
row.getAllCells().find((cell) => cell.column.id === columnId)?.column?.getAutoSortingFn() For columns with custom sorting functions I could perhaps specify them in ColumnMeta... |
Beta Was this translation helpful? Give feedback.
0 replies
-
dunno if you're still looking for some ideas on this, but you inspired my solution, so maybe i can return the favor |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a global filter using @tanstack/match-sorter-utils. I want to sort the rows based on the best matching column.
I have a working solution but it feels a bit hacky.
I'm adding a hidden column:
Where globalFuzzySort sorts each row based on the column with the best match:
I don't want to use globalFuzzySort for the existing columns directly because I want to fallback on the auto sort when global filter is empty or results in a tie:
Is there a better approach?
Beta Was this translation helpful? Give feedback.
All reactions