Replies: 1 comment 2 replies
-
|
For sort 'by is an alternative comparison function to use instead of '< for sorting, for sort-by '< is always used for comparison, but first 'by is called on each item. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
sorttakes an optional secondbyargument, andsort-bytakes a function as its first argument.What's the difference between
sortandsort-by, other than the arg ordering?Beta Was this translation helpful? Give feedback.
All reactions