GNOME Bugzilla – Bug 46710
Files containing numbers should be ordered by name numerically rather than in phonebook order
Last modified: 2006-09-09 18:12:03 UTC
I have a directory with file.1 file.2 ... It would be nice if things were ordered file.1, file.2, file.3.. instead of file.1, file.10, file.100... but then again people may disagree with me. ------- Additional Comments From darin@bentspoon.com 2001-02-16 15:47:28 ---- It's a good idea. I like it and I wanted to make this work on Macintosh back when I was at Apple. Unfortunately, it will be hard to do this in Nautilus without tromping on the territory of the localization system, because string ordering is done by strcoll correctly for each locale. ------- Additional Comments From eli@eazel.com 2001-03-26 11:11:34 ---- QA Assigning to self. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 20:57 -------
Changing to "old" target milestone for all bugs laying around with no milestone set.
*** Bug 158590 has been marked as a duplicate of this bug. ***
#158590 comment: "Nautilus should use natural order sorting. That is, if you have 10 files named "File 1", "File 2", ... "File 10", they are currently sorted with "File 1" first, then "File 10", then "File 2" and the rest. With a natural order sort, they would be "File 1", "File 2", and the rest, and "File 10" would be last. In other words, the natural order of the items. :-) See http://sourcefrog.net/projects/natsort/ for one implementation of it. This was brought up on the mailing list. Alexander Larsson noted that currently Nautilus doesn't sort by name directly, but by "collation keys" due to locale requirements, so this might not be very easy to implement. His note: http://lists.gnome.org/archives/nautilus-list/2004-October/msg00295.html But it's a worthwhile feature, so I'm putting it on the books, in case somebody (like me) wants to try doing it."
This works in 2.16.0, marking FIXED.