TanStackT
TanStack3y ago
15 replies
colossal-harlequin

Custom sorting fn and undefined values

Hi, I am trying to implement a custom sorting function on categorical values but I have not succeeded so far.
I've put together the simple codesandbox below, where I'd like the undefined values to always show up at the bottom of the table, be it ascending or descending on the status column.
Am I missing something in my implementation? Looking forward to any pointers, I've really spent way to much time on this issue...
Thanks

https://codesandbox.io/p/sandbox/purple-morning-44jlhw?file=%2Fsrc%2Fmain.tsx%3A78%2C21
Was this page helpful?