Liking cljdoc? Tell your friends :D

ctim.domain.sorting


compare-judgementsclj/s

(compare-judgements dt-now
                    {{j1-start :start_time j1-end :end_time} :valid_time
                     j1-disp :disposition
                     :as _judgement-1_}
                    {{j2-start :start_time j2-end :end_time} :valid_time
                     j2-disp :disposition
                     :as _judgement-2_})

Compare judgements, first by validity (valid first), then by disposition number, and then by start-time (newest first). It depends on a stable 'now', so it must be passed in. Returns -1, 0, or 1, as per 'compare.

Compare judgements, first by validity (valid first), then by
disposition number, and then by start-time (newest first).  It
depends on a stable 'now', so it must be passed in.  Returns -1, 0,
or 1, as per 'compare.
raw docstring

sort-judgementsclj/s

(sort-judgements judgements)

Sorts Judgements based on validity, disposition, and finally by start-time

Sorts Judgements based on validity, disposition, and finally by start-time
raw docstring

sort-sightingsclj/s

(sort-sightings sightings)

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

× close