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

Bring back naturalOrder export #5

Open
leMaik opened this issue Apr 2, 2022 · 1 comment
Open

Bring back naturalOrder export #5

leMaik opened this issue Apr 2, 2022 · 1 comment

Comments

@leMaik
Copy link

leMaik commented Apr 2, 2022

In v2, the naturalOrder export was removed, due to it not being immutable. That's not strictly true: the compare function itself is perfectly immutable, it just allows users to do non-immutable things by plugging it into Array.prototype.sort.

My use case is that I have a table library that doesn't allow sorting rows but only lets me specify a compare function to compare two rows by a column (the library e.g. manages sorting order, nested rows, sorting by multiple columns). I can't use it with v2.0.3 now. 😭

@lindsaykwardell
Copy link
Owner

Hey! I'm so sorry, I only just now saw this issue. I'm assuming you've found a different solution at this point, but if it's still a concern please let me know.

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

2 participants