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 316960 - bad file names sorting in nautilus
bad file names sorting in nautilus
Status: RESOLVED DUPLICATE of bug 355152
Product: nautilus
Classification: Core
Component: Navigation
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
nautilus[EMC08]
: 324338 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-09-22 18:10 UTC by Emmanuel Touzery
Modified: 2010-05-26 09:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
look at the file ordering (107.41 KB, image/png)
2005-09-22 18:11 UTC, Emmanuel Touzery
Details
another case of wrong sorting (120.91 KB, image/png)
2005-10-31 11:30 UTC, Emmanuel Touzery
Details

Description Emmanuel Touzery 2005-09-22 18:10:40 UTC
Distribution/Version: ubuntu breezy

go in a directory with filenames like the picture attachment i'll link shows.
you can see that two files are not sorted together properly.
my locale is en_US.UTF-8 ($LANG). but as you can see the filenames are only ASCII.

i'll attach the picture now.
Comment 1 Emmanuel Touzery 2005-09-22 18:11:47 UTC
Created attachment 52521 [details]
look at the file ordering
Comment 2 Emmanuel Touzery 2005-10-31 11:30:28 UTC
Created attachment 54123 [details]
another case of wrong sorting

The sorting is wrong here again, "Lara 2005-10-26 11h32m00s.jpg" should be
before "Lara 2005-10-26 11h32m06s.jpg".
The sorting is wrong both in icon view and list view.
Comment 3 fischi 2005-12-24 01:46:04 UTC
This Bug is very urgent!
It still exists in Nautilus 2.12.2! (Debian experimental)

To reproduce, you simply have to create those folders:
11 and 1a, Nautilus displays them in wrong order: (1a first)
Comment 4 Teppo Turtiainen 2005-12-24 08:50:15 UTC
*** Bug 324338 has been marked as a duplicate of this bug. ***
Comment 5 Teppo Turtiainen 2005-12-24 08:53:18 UTC
Confirmed with Nautilus 2.12.1 on Ubuntu Breezy.
Comment 6 Jacob Emcken 2005-12-24 10:23:08 UTC
I don't think bug 324338 is a duplicate. Unless if you can guarantee that when this bug is fixed... the two applications (Nautilus and Open/save dialog) will sort file/directory lists excatly the same.

Bug 324338 is about consistency not about sort order.
Comment 7 fischi 2005-12-24 11:50:29 UTC
IMHO this is about sorting correctly or not. If both applications sort correct, there will be no difference.
If this bug is fixed it has to look like it does in (Open/Save Dialog). Otherwise there is also a "sorting" bug in (Open/Save Dialog).
Comment 8 Olav Vitters 2005-12-24 12:14:20 UTC
Sorting problems can be annoying, but are not high priority. Crashers are.
Comment 9 Jacob Emcken 2005-12-24 13:36:05 UTC
Is it documented what "correct sorting" is?

The open/save file dialog seems to ignore characters like #
I dunno know if that is correct sorting, but I was surprised to find it that way, and would like to find out know excatly what correct sorting is.

Comment 10 fischi 2005-12-24 14:38:45 UTC
Ok - it is not. Sorry.
You're right, but shouldn't the "file open/save dialog" use the same algorithm as nautilus?

There are several possibilities to sort (afaik):
1 - you sort according to unicode-numbers
2 - you ignore everything but numbers and letters
3 - like (2) but you treat some letters like the german "Ä,Ö,Ü" as "A,O,U" and ignore whether the letters are big or small

Nautilus did the third thing before Version 2.12.
Comment 11 Jacob Emcken 2005-12-28 13:21:54 UTC
I don't care if Nautilus uses the same algorithm as "file open/save dialog" or the other way around as long as they are the same. ;-)

I would like to have the same sorting wether I use File Roller, Nautilus, Open/Save File.

Perhapes list of wallpapers in "Desktop Wallpaper Preferences" should also be sorted using the same algorithm, like a lot of other things I haven't thought about yet.
Comment 12 Alexandre Laurent 2006-01-13 23:30:40 UTC
I've got this exact same problem in Ubuntu 5.10 with Gnome 2.12.1.

In my particular case, I have a bunch of directories which are named after a number converted to hexadecimal. For example, I could have names like 43C3-DB1A and 43C3-DB3F.

I was expecting those directories to be sorted according to their value. But some of them just get inverted. It seems that letters sometimes get sorted before numbers.

I'm glad to see I'm not alone in this situation...
Comment 13 Michael Heimann 2006-04-06 19:29:02 UTC
I don't get nautilus when handling leading numbersfollowed by characters...
I've tested with some files and didn't manage to understand it. That doen't look like sorted at all:

0
0a
0b
0c
1
0d
2
0e
3
0f
4
0g
5
0h
6
0i
7
0j
8
0k
9
0l
0m
10
Comment 14 Emmanuel Touzery 2006-07-12 15:53:04 UTC
today i also discovered that EOG image collection uses a different sorting than nautilus. in my case, the first file in nautilus was the third file in EOG image collection...
IMO, GNOME should have one filename sorting, and stick with it...
Comment 15 Nelson Benitez 2008-12-10 16:12:51 UTC
You may find this comment[1] useful for this bug.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=547350#c3
Comment 16 Cosimo Cecchi 2009-04-26 13:02:11 UTC
Could be a duplicate of bug #355152.
Comment 17 Cosimo Cecchi 2010-05-26 09:47:13 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 355152 ***