After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 46710 - Files containing numbers should be ordered by name numerically rather than in phonebook order
Files containing numbers should be ordered by name numerically rather than in...
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: All
2.10.x
Other All
: Low enhancement
: future
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 158590 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-02-16 19:44 UTC by Rebecca Schulman
Modified: 2006-09-09 18:12 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Rebecca Schulman 2001-09-10 00:57:59 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 -------
Comment 1 John Fleck 2002-01-05 04:14:20 UTC
Changing to "old" target milestone for all bugs laying around with no milestone set.
Comment 2 Sebastien Bacher 2005-02-03 14:47:53 UTC
*** Bug 158590 has been marked as a duplicate of this bug. ***
Comment 3 Sebastien Bacher 2005-02-03 14:48:37 UTC
#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."
Comment 4 Travis Watkins 2006-09-09 18:12:03 UTC
This works in 2.16.0, marking FIXED.