Czech Alphabetical Sort

Sort Czech with ch as a single letter between h and i

Sorts a list of Czech words using the Czech CLDR collation order, where the digraph ch counts as one letter placed after h and before i, and accented vowels sort right after their base letter. Runs in your browser.

Why does ch sort after h instead of after c?

In the Czech alphabet ch is a distinct letter, not the letters c and h together. It has its own position in the sequence, right after h and before i. So chleba sorts after hora but before idol, which surprises people used to English sorting.

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.