es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

sortBy with string[]

Open gurgeous opened this issue 10 months ago • 2 comments

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!

gurgeous avatar Dec 03 '24 21:12 gurgeous