sort-values ( obj -- sortedseq )
Factor handbook » The language » Collections » Sequence operations » Sorting sequences

Prev:sort-keys ( obj -- sortedseq )


Vocabulary
sorting

Inputs
objan object


Outputs
sortedseqa new sorted sequence


Word description
Sorts the elements of obj (converting to an alist first if not a sequence), comparing second elements of pairs using the <=> word.

See also
compare, compare-with, natural-sort, sort-with, inv-sort-with, sort-keys

Definition

GENERIC: sort-values ( obj -- sortedseq )


Methods