coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to sort unicode properly?


From: Peng Yu
Subject: How to sort unicode properly?
Date: Wed, 25 Sep 2019 10:20:19 -0500

Hi,

It seems that "café" should be sorted before "caff" in Unicode.

https://github.com/jtauber/pyuca

But `sort` does not do so.

$ printf '%s\n' cafe caff café | LC_ALL=UTF8  sort
cafe
caff
café
$ printf '%s\n' cafe caff café | LC_ALL=en_US.UTF-8  sort
cafe
caff
café

How to make `sort` sort according to Unicode order? Thanks.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]