-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorting with Undefined Values #1424
Comments
We seem to have a similar issue. When there are null values, then the sorting goes wrong. Some entries are sorted, but when the null value is reached, then the following values are no longer sorted. Writing an own sort function solves the issue. |
This is my attempt of fixing the code in
|
anguslee-wse
added a commit
to anguslee-wse/gridjs
that referenced
this issue
Aug 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Column sorting doesn't work as expected when column contains undefined values.
To Reproduce
Steps to reproduce the behavior:
** Device
Additional context
May be able to fix by 1. Adding check for undefined in native sort function 2. Passing order (asc, desc) to comparator function for custom handling of undefined values. Unfortunately don't currently have time to check all possible causes and write PR, but may be able to in the next few weeks.
The text was updated successfully, but these errors were encountered: