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