Liking cljdoc? Tell your friends :D

hara.reflect.pretty.display.sort


sort-fnclj

(sort-fn f)

returns a function taking two inputs x and y, comparing the outputs after applying f to both

((sort-fn :id) {:id 1} {:id 2}) => -1

returns a function taking two inputs `x` and `y`, comparing the outputs after applying `f` to both

((sort-fn :id) {:id 1} {:id 2}) => -1
raw docstring

sort-terms-fnclj

(sort-terms-fn grp)

This is a little broken, it is supposed to sort on various keys, but currently only works with :name

((sort-terms-fn {:sort-terms nil}) [{:name 3}{:name 1} {:name 2}]) => [{:name 1} {:name 2} {:name 3}]

This is a little broken, it is supposed to sort on various keys, but currently only works with :name

((sort-terms-fn {:sort-terms nil})
 [{:name 3}{:name 1} {:name 2}])
=> [{:name 1} {:name 2} {:name 3}]
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close