(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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close