The Danish Alphabetical Sort orders a list of Danish words, names, or places using the correct Danish collation — most importantly, placing the three extra letters æ, ø, and å at the very end of the alphabet, after z.
How it works
The tool splits your input into lines, removes blank lines, and sorts them with the browser’s Intl.Collator set to the da (Danish) locale. That collator knows the official Danish ordering, including the end-of-alphabet position of æ, ø, and å. If Intl is somehow unavailable, the tool falls back to a built-in weight table that assigns those three letters positions 27, 28, and 29 so they still sort after z.
Sorting uses base sensitivity, so case and minor accent differences are ignored for ordering — Århus and ÅRHUS land in the same place.
Danish versus Swedish order
It is easy to confuse the Nordic collations, but they differ:
- Danish and Norwegian: end the alphabet with
æ,ø,å. - Swedish: ends with
å,ä,ö.
So Ærøskøbing and Ølstykke sort to the very end in Danish, and a tool configured for Swedish would order these letters incorrectly. Always sort Danish text with Danish rules.
Example
Sorting Århus, Ølstykke, København, Ærøskøbing, Zealand, Odense produces København, Odense, Zealand, Ærøskøbing, Ølstykke, Århus — the three special-letter names appear last, after the z-name, in the order æ, ø, å.