Skip to main content

sort-by

functionv1.7

cljs.core/sort-by

Available in:BBCLJCLJS
(sort-by [keyfn coll] [keyfn comp coll])
Returns a sorted sequence of the items in coll, where the sort order is determined by comparing (keyfn item). Comp can be boolean-valued comparison function, or a -/0/+ valued comparator. Comp defaults to compare.

No examples yet. Be the first to add one!