I personally think the reason is "natural sort order" does:
a) not interpret the german "," decimal separator as such
b) not even aussume fractal base 10 - Numbers to be in a filename
c) therefore, it interprets the number as integer, starting after the "," - so 
it sees
   something mor like 2-dim vector in this filename, putting the <1l bottles 
before the >=1l bottles,
  and then intepreting the numbers after the "," as "second index", thus sorting
  2 - 5 - 33
  0,2LMW 0,33LMW 0,5LMW 0,5LMWPET 1,0LEWPET 1,5LEWPET

I think this is a good example why "naturally" sorting will never work 
perfectly, because no tool will ever know if you try to provide tuples or 
german-style fractals in this filename (even if you mess with the locale - how 
shall nautilus know if the filename has the same locale "in mind" than itself 
(the given filenames could be created by a german who sends them to an english 
speaker with a "."-aware locale on his system. On windows, I would name the 
files
0,20l-mw 0,33l-mw, 0,50l-mw 0,50l-mw 1,00l-ew-pet 1,50l-ew-pet
meaning, I would put "-" or "_" as seperator between parts AND use a constant 
amount of chars for each file to get a "column" adjusted view of those - and 
probably, with constanting the amount, even nautilus would sort decently. I am 
basically suffering that nautilus ignores the "_" "!" prefixing...

The more I think about it, sorting order would be something a good
filesystem should record for each directory and this info should even be
passed into eg. 7z or zipfiles all the way, so it is retained when going
to someone else. Should file a brainstorm thing here - anybody know if
zfs has such options yet?

-- 
When sorting alphabetically by file name, 0,5LMW is displayed before 0,33LMW
https://bugs.launchpad.net/bugs/322271
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to