Skip to content
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

Open
ldrummond opened this issue Feb 14, 2024 · 0 comments
Open

Sorting with Undefined Values #1424

ldrummond opened this issue Feb 14, 2024 · 0 comments

Comments

@ldrummond
Copy link

Column sorting doesn't work as expected when column contains undefined values.

To Reproduce
Steps to reproduce the behavior:

  1. Create a table
  2. Add data as array of arrays, with sample values
[
 [undefined],
 [100],
 [300],
 [undefined],
 [50]
}
  1. Test sorting of column; sorting does not occur. No errors are thrown.

** Device

  • Chrome, Brave
  • NPM Version 6.1.1

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant