We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
arr.sort(sortBy('key.path')) or arr.sort(sortBy('-key.path'))
The text was updated successfully, but these errors were encountered:
The - looks a little to magic for my taste. How about adding a second argument for the direction? And maybe sortByKey would be a more expressive name?
-
sortByKey
Sorry, something went wrong.
Good points. I'm with you on the first argument. Maybe it should take a mapping function, ex: it could be used in conjunction with pluck.
— @tjmehta
On Wed, Jul 22, 2015 at 10:43 PM, Christoph Hermann [email protected] wrote:
The - looks a little to magic for my taste. How about adding a second argument for the direction? And maybe sortByKey would be a more expressive name? Reply to this email directly or view it on GitHub: #105 (comment)
The - looks a little to magic for my taste. How about adding a second argument for the direction?
Reply to this email directly or view it on GitHub: #105 (comment)
Although that becomes a lot of nested functions... Will have to think about this one..
No branches or pull requests
arr.sort(sortBy('key.path')) or arr.sort(sortBy('-key.path'))
The text was updated successfully, but these errors were encountered: