Handbook
Glossary
sort-strings ( strings -- sorted )
Collation and weak comparison
Next:
collation-key/nfd ( string -- key nfd )
Vocabulary
unicode
Inputs
strings
a sequence of strings
Outputs
sorted
the strings in lexicographical order
Word description
This word takes a sequence of strings and sorts them according to the Unicode Collation Algorithm with the default collation order described in the DUCET. It uses code point order as a tie-breaker.
Definition
USING:
arrays
assocs
sequences
sorting
;
IN:
unicode
:
sort-strings
( strings -- sorted )
[
collation-key/nfd
2array
]
map
sort
values
;