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

sortBy with string[] #869

Open
gurgeous opened this issue Dec 3, 2024 · 2 comments
Open

sortBy with string[] #869

gurgeous opened this issue Dec 3, 2024 · 2 comments

Comments

@gurgeous
Copy link

gurgeous commented Dec 3, 2024

Thanks for creating es-toolkit, we are migrating today and love it. Really appreciate all your hard work!

It would be nice if sortBy/orderBy supported an array of strings. This is pretty common IMO and worked with lodash. Ordering by lower case, or by string length, or some kind of category lookup, or natural sort, or first word in a sentence, etc. Thanks again!

@raon0211
Copy link
Collaborator

raon0211 commented Dec 7, 2024

Hello :) Let us look into this.

@gurgeous
Copy link
Author

gurgeous commented Dec 7, 2024

Great, let me know if I can help! I think compat/sortBy handles it appropriately

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