Skip to main content

sort

functionv1.0

clojure.core/sort

Available in:BBCLJCLJS
(sort [coll] [comp coll])
Returns a sorted sequence of the items in coll. If no comparator is supplied, uses compare. comparator must implement java.util.Comparator. Guaranteed to be stable: equal elements will not be reordered. If coll is a Java array, it will be modified. To avoid this, sort a copy of the array.

No examples yet. Be the first to add one!