I want a sorting like this, with capitalized letters before lowercase:-rw-r--r--.  1 0 0    183 2014-10-14 20:17 ./CHECKSUMS.md5-rw-r--r--.  1 0 0    185 2014-10-14 20:17 ./CHECKSUMS.ascdrwxr-xr-x.  2 0 0   4096 2014-10-14 18:01 ./a-rw-------.  1 0 0 464140 2013-12-16 19:11 ./a/pam-1.1.8-x86_64-2mg.txzdrwxr-xr-x.  2 0 0   4096 2014-10-14 19:55 ./b-rw-------.  1 0 0 464140 2014-10-14 19:55 ./b/pam-1.1.8-x86_64-2mg.txzdrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./cdrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./ddrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./edrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./fdrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./gI use this command:find -L . -print  | sort -d | xargs ls -nld --time-style=long-isoand result is:drwxr-xr-x. 29 0 0   4096 2014-10-14 20:17 .drwxr-xr-x.  2 0 0   4096 2014-10-14 18:01 ./a-rw-------.  1 0 0 464140 2013-12-16 19:11 ./a/pam-1.1.8-x86_64-2mg.txzdrwxr-xr-x.  2 0 0   4096 2014-10-14 19:55 ./b-rw-------.  1 0 0 464140 2014-10-14 19:55 ./b/pam-1.1.8-x86_64-2mg.txzdrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./c-rw-r--r--.  1 0 0    183 2014-10-14 20:17 ./CHECKSUMS.md5drwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./ddrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./edrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./fdrwxr-xr-x.  2 0 0   4096 2014-10-14 18:00 ./gHow can I get the sort order I want?
sort and ls -- why aren't capitalized letters sorted first?
ls;sort;locale
Most simply use export LC_ALL=C,make the script with ls,sort,etcand then return to you favourite LC,in my case UTF8.