Hot answers tagged

1 vote
Accepted

Display the results in an alphabetical order, independently of their case

ls is required by POSIX to sort the file names in its output according to the collating sequence in the current locale. If your system has no locale where the sort order ignores case at least in the ...
Stéphane Chazelas's user avatar
1 vote

Why is ls sorting Chinese filenames by length?

I found out where macOS stores locale files, in /usr/share/locale, and to my surprise this is how the zh_CN.UTF-8 locale is defined: % ls -la /usr/share/locale/zh_CN.UTF-8 total 8 drwxr-xr-x 8 root ...
nneonneo's user avatar
  • 1,078

Only top scored, non community-wiki answers of a minimum length are eligible