Sorting by slots


The sorting.slots vocabulary can sort tuples by slot in ascending or descending order, using subsequent slots as tie-breakers.

Comparing two objects by a sequence of slots:
compare-slots ( obj1 obj2 sort-specs -- <=> )


Sorting a sequence of tuples by a slot/comparator pairs:
sort-by ( seq sort-specs -- seq' )

sort-keys-by ( alist sort-seq -- seq' )

sort-values-by ( seq sort-seq -- seq' )