What is it that determines the order that files/directories are sorted by the ls command?
Some time ago after a apt-get dist-upgrade (the box is testing/unstable) the sorting behavior of ls changed from what I expect as standard (.files at the top etc) to the typical output below: [EMAIL PROTECTED]:~$ ls -la total 31480 drwxr-sr-x 99 david david 12288 2004-01-12 19:06 . drwxrwsr-x 5 root staff 4096 2003-08-11 08:34 .. -rw-r--r-- 1 david david 196937 2001-10-18 18:40 01oct.pdf -rw-r--r-- 1 david david 320400 2002-06-17 18:44 042klc19.pdf -rw-r--r-- 1 david david 3003 2001-10-13 21:18 100dpi.txt -rw-r--r-- 1 david david 60227 2003-07-17 18:50 12jun2003 -rw-r--r-- 1 david david 16446 2003-09-30 19:22 2001WEB.MID -rw-r--r-- 1 david david 326804 2001-09-05 20:47 28920e.pdf -rwxr-xr-x 1 david david 4129 2003-05-14 18:06 42 -rw-r--r-- 1 david david 162 2003-05-14 18:06 42.c -rw-r--r-- 1 david david 162 2003-05-14 18:05 42.c~ -rw-r--r-- 1 david david 2893 2001-10-13 21:17 75dpi.txt drwx--S--- 2 david david 4096 2003-05-04 11:57 .AbiSuite drwx--S--- 2 david david 4096 2001-10-13 18:41 .abuse -rw-r--r-- 1 david david 1935 2004-01-10 14:14 .acrorc -rw-r--r-- 1 david david 736 2002-06-25 09:22 addressbook.csv lrwxrwxrwx 1 david david 9 2001-08-12 19:31 AdobeFnt.lst -> /dev/null -rw-r--r-- 1 david david 65973 2003-05-10 17:08 ADSL-Bandwidth-Manag It seems to sort in strict alpha, disregarding the . in hidden files and ignoring case. How can I return the sort to the conventional one? -- David Would anyone like any toast? -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
