Sorting Polish text correctly means putting each accented letter right after its base — a ą b c ć … — rather than dumping all the diacritics at the end as a naive sort would. This tool uses the Polish CLDR collation to order any list exactly the way a Polish dictionary would.
How it works
When available, the tool uses your browser’s Intl.Collator with the pl locale, which implements the official Polish tailoring. If that is missing, it falls back to a manual weight table built from the Polish alphabet order:
a ą b c ć d e ę f g h i j k l ł m n ń
o ó p q r s ś t u v w x y z ź ż
Each letter is mapped to a numeric weight, so łąka sorts after lampa (because ł follows l) but before mama. The comparison is case-insensitive for ordering purposes.
Example and notes
Given żaba, źrebak, ćma, ała, ala, łąka, lampa, the Polish order is ala, ała, ćma, lampa, łąka, źrebak, żaba. Note that ała follows ala (the ł outranks the plain l only at that position) and that ż comes last of all. Use descending mode to reverse the list while keeping the same letter ordering.