If you've got filenames with leading digits, Thunar's "sort by name" produces something that is, at best, vaguely alphabetical. To reproduce: 1) Create a folder containing files named "174067164683d23e8808fd3245196a6b.png", "86659359136fe72ae37b7cd8b381b2c2.jpeg", and "377713586156fe6042f4bdf14b771599.jpg" 2) Select "View as detailed list" 3) Click the "name" column Expected result: The files sorted in alphabetical order 174067164683d23e8808fd3245196a6b.png 377713586156fe6042f4bdf14b771599.jpg 86659359136fe72ae37b7cd8b381b2c2.jpeg Actual result: The files are sorted in the order 86659359136fe72ae37b7cd8b381b2c2.jpeg 174067164683d23e8808fd3245196a6b.png 377713586156fe6042f4bdf14b771599.jpg
I confirmed this behavior on Thunar 1.6.3. It happens with files named 86659359136f.jpeg 174067164683.png but it does not happens with files named 86659359136.jpeg 17406716468.png
I've got the same bug as Mark Wagner on both Thunar (git master) and Caja filemanager (MATE Desktop)
ls | sort -n 86659359136fe72ae37b7cd8b381b2c2.jpeg 174067164683d23e8808fd3245196a6b.png 377713586156fe6042f4bdf14b771599.jpg Sorting is done by numeric values.
This is still continuing. Thunar 1.6.14, I have the first two letters be a hexadecimal code for sorting properly. I should have this: 00.Notes.md 01.Boston-1.md 02.Boston-2.md 03.Boston-3.md 04.Boston-4.md 05.Boston-5.md 06.NewHaven.md 08.NewYork.md 09.Secaucus.md 0A.Trenton.md 0B.Trenton-2.md 0C.Trenton-3.md 10.Philly.md 11.Philly-2.md 18.Baltimore.md 19.Baltimore-2.md 20.WashDC.md 24.WashDC.md 28.Pittsburgh.md 30.Cleveland.md 38.Chicago.md 39.Chicago.md 3A.Chicago.md 3B.Carbondale.md 40.StLouis.md 41.StLouis.md 48.Dallas.md 49.Dallas.md 50.Albuquerque.md 50.Houston.md 58.Dallas.md 58.Tuscon.md 60.Phoenix.md 68.LasVegas.md 70.LosAngeles.md 78.SanJose.md 80.Metroburg-1.md 88.Portland.md 90.Seattle.md 98.Metroburg-Home.md 9F.Metroburg-Home.md S2S-Beds.txt S2S-Train.md S2S-Train.md~ Instead, I get the screenshot which I'm attaching. We should be sorting by ASCII/Unicode, not numerically!
Created attachment 8194 How is shows in Thunar, ie, badly.
This may be a GTK issue. The File Open box has the same exact problem!
File names are also sorted in this way for me. However if we have the situation of a directory with three files: "1.png", "2.png" and "11.png", the current behaviour will sort them in this order: - 1.png - 2.png - 11.png Now, if I understand it correctly, solving this bug would change it to this order (this is the output of "ls | sort"): - 11.png - 1.png - 2.png Which, in my opinion, is not expected behaviour.
The current behaviour (numerical sort with "extension" handling) is the former, which is mangled badly in my example. Expected behaviour (which matches that of Windows, MacOS, iOS, etc) is the latter.
Bug 10672 addresses the issue with filename sorting already. *** This bug has been marked as a duplicate of bug 10672 ***