(compare-vals x y)
A comparator that works for the various types found in table structures. This is a limited implementation that expects the arguments to be of the same type. The :else case is to call compare, which will throw if the arguments are not comparable to each other or give undefined results otherwise.
Both arguments can be a vector, in which case they must be of equal length and each element is compared in turn.
A comparator that works for the various types found in table structures. This is a limited implementation that expects the arguments to be of the same type. The :else case is to call compare, which will throw if the arguments are not comparable to each other or give undefined results otherwise. Both arguments can be a vector, in which case they must be of equal length and each element is compared in turn.
(date-as-sortable d)
Returns something that can be used to order dates.
Returns something that can be used to order dates.
(date? d)
Returns true if the argument is a date, false otherwise.
Returns true if the argument is a date, false otherwise.
(sort-fn rows column-model sorting)
Generic sort function for tabular data. Sort rows using data resolved from the specified columns in the column model.
Generic sort function for tabular data. Sort rows using data resolved from the specified columns in the column model.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close