'sort' command does not support "human graspable sorting" in unicode 
environments.
http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021

I  suggest solution, sort with "LC_ALL=C" variables (or set in your
aliases).

This is bad spec, but this is unalterable by historical reason.

$ ls -1 | sort 
①
③
②
②-test.txt
⑤-test.txt
④-test.txt
⑥-test.txt
①-test.txt
③-test.txt

$ ls -1| LC_ALL=C sort
①
①-test.txt
②
②-test.txt
③
③-test.txt
④-test.txt
⑤-test.txt
⑥-test.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1248239

Title:
  sorting fails on Japanese Unicode characters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1248239/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to