You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks for that fantastic library!
I have a question or a bug when creating an Excel like sorting. My problem is to get the null/undefined results always to the bottom of the table. I would have assumed that sortUndefined would do the trick but it did not. Therefore I tried to create a custom sorting for that. But I can not manage to geht the sorting correct.
Correct (Excel Like) would be, if my table could do that
Excel Behavior
Supported in excelSortingFn?
Numbers before text
✅ Yes
Booleans in correct order
✅ Yes
Case-insensitive strings
✅ Yes
Empty/null values last
❌ Problem
No coercion of string "123"
✅ Yes
I added a simple code sandbox link below to try it out. Any help would be greatly appreciated.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
After further investigation and experimentation, I've found a solution that achieves the desired "Excel-like" sorting while respecting all the constraints. I'm posting it here and hope it can solve your problem.
Activity
baskvava commentedon Aug 5, 2025
Hello @philipp985
After further investigation and experimentation, I've found a solution that achieves the desired "Excel-like" sorting while respecting all the constraints. I'm posting it here and hope it can solve your problem.
This is final version for App.tsx
docs: add Excel-like sorting guide for null/undefined handling
ippeiukai commentedon Jun 22, 2026
I'm trying to migrate existing tables to v8. In v7, sorting functions received
descflag that can be used to keep some rows always at the bottom.For ease of migration, it would still be nice to have more generalized option than
sortUndefined, like this: