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

Prev:inv-sort-by ( seq quot: ( elt -- key ) -- sortedseq )
Next:sort-values ( 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 first elements of pairs using the <=> word.

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

Definition

GENERIC: sort-keys ( obj -- sortedseq )


Methods