inv-sort-by ( seq quot: ( elt -- key ) -- sortedseq )
Factor handbook » The language » Collections » Sequence operations » Sorting sequences

Prev:sort-by ( seq quot: ( elt -- key ) -- sortedseq )
Next:sort-keys ( obj -- sortedseq )


Vocabulary
sorting

Inputs
seqa sequence
quota quotation with stack effect ( elt -- key )


Outputs
sortedseqa new sorted sequence


Word description
Sorts the elements of seq by applying compare with quot to each pair of elements in the sequence and inverting the results.

See also
compare, sort, sort-by, sort-keys, sort-values

Definition