SortBy
sorts
list
(or the elements of any other expression) according to canonical ordering of the keys that are extracted from thelist
’s elements usingf
. Chunks of leaves that appear the same underf
are sorted according to their natural order (without applyingf
).
creates an operator function that, when applied, sorts by
f
.
Examples
Implementation status
- ✅ - full supported