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
-
sort
takes an optional secondby
argument, andsort-by
takes a function as its first argument.What's the difference between
sort
andsort-by
, other than the arg ordering?Beta Was this translation helpful? Give feedback.
All reactions