natural-sort ( seq -- sortedseq )
Factor handbook » The language » Collections » Sequence operations » Sorting sequences

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


Vocabulary
sorting

Inputs
seqa sequence


Outputs
sortedseqa new sorted sequence


Word description
Sorts a sequence of objects in natural order using the <=> word.

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

Definition