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 435505 - Illogical fileordering
Illogical fileordering
Status: RESOLVED DUPLICATE of bug 355152
Product: nautilus
Classification: Core
Component: Views: All
2.16.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-03 13:29 UTC by Alexander Skwar
Modified: 2008-05-18 16:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Screenshot of Nautilus showing the strange file ordering. (158.27 KB, image/png)
2007-05-03 13:30 UTC, Alexander Skwar
Details
Screenshot of the same directory, shown in Konqueror. (102.87 KB, image/png)
2007-05-03 13:31 UTC, Alexander Skwar
Details
1.jpg (145.81 KB, image/jpeg)
2007-09-13 20:29 UTC, Pacho Ramos
Details
2.png (73.06 KB, image/png)
2007-09-13 20:29 UTC, Pacho Ramos
Details

Description Alexander Skwar 2007-05-03 13:29:57 UTC
Please describe the problem:
I've got a directory which holds files named like this:

MOV001
MOV002
MOV003
...
MOV009
MOV00A
MOV00B
...
MOV00F
MOV010

But when nautilus displays the files, it decides to do it
"cleverly", and sorts all the 001 to 009, 010 to 019, etc. files after
all the 00A to 00F, 01A to 01F files, so I end up with this:

MOV00A
MOV00B
...
MOV00F
MOV01A
...
MOV001
MOV002
MOV003
...
MOV009
MOV010
MOV011
...

which is in completely the wrong order.

`ls` & Konqueror don't sort it like nautilus

Steps to reproduce:
1. 

mkdir test-sort; cd test-sort
for ((i=1; i<=30; i++)); do 
  touch `printf "MOV%03X.MOV\n" $i`
done; cd ..

2. ls -l test-sort
3. nautilus test-sort &
4. konqueror test-sort &


Actual results:
In Nautilus, the file ordering is not logical (at least not to me...). I've got MOV00A .. MOV00F, MOV001, MOV01A ... MOV01E, MOV002 ... MOV009

I'll attach screenshots, showing the way the files are ordered in Nautilus and also in Konqueror.

Expected results:
Ordering should be like this:

askwar@winnb000488 /dev/shm/test-sort $ ls -1
MOV001.MOV
MOV002.MOV
MOV003.MOV
MOV004.MOV
MOV005.MOV
MOV006.MOV
MOV007.MOV
MOV008.MOV
MOV009.MOV
MOV00A.MOV
MOV00B.MOV
MOV00C.MOV
MOV00D.MOV
MOV00E.MOV
MOV00F.MOV
MOV010.MOV
MOV011.MOV
MOV012.MOV
MOV013.MOV
MOV014.MOV
MOV015.MOV
MOV016.MOV
MOV017.MOV
MOV018.MOV
MOV019.MOV
MOV01A.MOV
MOV01B.MOV
MOV01C.MOV
MOV01D.MOV
MOV01E.MOV

That's also the way Konqueror displays them. And, more importantly, it seems more logical to me.

Does this happen every time?
Sure does.

Other information:
That's actually a report somebody brought up on the Gentoo Users mailing list. See  http://www.mail-archive.com/gentoo-user@lists.gentoo.org/msg54600.html
Comment 1 Alexander Skwar 2007-05-03 13:30:49 UTC
Created attachment 87448 [details]
Screenshot of Nautilus showing the strange file ordering.
Comment 2 Alexander Skwar 2007-05-03 13:31:14 UTC
Created attachment 87449 [details]
Screenshot of the same directory, shown in Konqueror.
Comment 3 Pacho Ramos 2007-09-13 20:28:24 UTC
Same problem in mandriva:
http://qa.mandriva.com/show_bug.cgi?id=25447

And also in Gentoo

In our example, (see new attached files) 12347.txt should be listed before 1235.txt

Thanks for fixing this

Comment 4 Pacho Ramos 2007-09-13 20:28:50 UTC
This is tested with nautilus-2.18 and 2.19.91
Comment 5 Pacho Ramos 2007-09-13 20:29:15 UTC
Created attachment 95547 [details]
1.jpg
Comment 6 Pacho Ramos 2007-09-13 20:29:36 UTC
Created attachment 95548 [details]
2.png
Comment 7 A. Walton 2008-05-18 16:58:00 UTC
Thanks for the bug report and sorry for the delayed response. This bug is very likely to be identical to bug 355152, so I'm closing it as a duplicate. Please reopen if this is not the case, and feel free to report any further bugs you find.

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