Sorting Czech text correctly is harder than it looks because the digraph ch is a single letter of the alphabet, positioned after h and before i. Accented vowels also sort right next to their base letter rather than at the end of the table. A naive code-point sort gets both wrong.
How it works
The tool relies on the browser’s built-in Intl.Collator with the Czech locale,
which encodes the official CLDR collation rules:
… g h ch i j … (ch is one letter, after h)
a á b c č d ď … (accents are secondary; č, š, ž are own letters)
Each line of your input becomes a list entry, and the collator compares them pairwise so the final order matches a printed Czech dictionary or phone book. You can flip the direction to sort from Ž back to A.
Example and tips
Given hora, chata, idol, dům, the Czech order is dům, hora, chata,
idol — note how chata lands between hora and idol, not next to cesta.
Keep one item per line; leading and trailing spaces are trimmed before
comparison. Because this uses the native locale engine, results match what Czech
operating systems and databases produce with the cs_CZ collation.