This tool sorts a list of Romanian words the way a Romanian dictionary or phone book would, putting the diacritic letters ă, â, î, ș and ț in their correct alphabetical positions instead of dumping them at the end.
How it works
The tool uses the browser’s native Intl.Collator with the Romanian (ro) locale, which implements the CLDR Romanian collation tailoring. In Romanian these accented letters are primary distinctions, not accent variants to be folded away:
ăsorts immediately aftera, andâimmediately afterăîsorts immediately afterișsorts afters, andțaftert
So the alphabet order used for comparison is roughly: a · ă · â · b · … · i · î · … · s · ș · t · ț · …. Each line is trimmed, empty lines are dropped, and the remaining words are compared pairwise with the collator.
Example
Given the words bară, animal, ăsta, îngheț, șurub, tată, țară, soare, the Romanian sort yields animal, ăsta, bară, idee, îngheț, soare, șurub, tată, țară — note ăsta landing right after animal and before bară, and țară after tată.