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 340957 - Filenames containing numbers are not properly sorted (as how nautilus does)
Filenames containing numbers are not properly sorted (as how nautilus does)
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: collection
2.14.x
Other All
: Normal minor
: ---
Assigned To: EOG Maintainers
EOG Maintainers
: 416118 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-07 21:43 UTC by Laszlo Pandy
Modified: 2007-03-08 17:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
generate correct collation keys (585 bytes, patch)
2006-05-31 12:25 UTC, Felix Riemann
none Details | Review

Description Laszlo Pandy 2006-05-07 21:43:31 UTC
Eye of GNOME should sort images like nautilus does, so that when the user opens
the image from nautilus, the pictures will be shown in the same order as they
appear in the nautilus file list.


Other information:
I have a folder of pictures entitled "photo 1.jpg", "photo 2.jpg", etc. When
viewing the folder in Nautilus, the images are sorted in the proper order.
However in the collection of EOG, the images are sorted by only evaluating one
digit at a time. For example "photo 108.jpg", photo 109.jpg", "photo 10.jpg",
"photo 110.jpg", etc.
Comment 1 Felix Riemann 2006-05-31 12:25:31 UTC
Created attachment 66524 [details] [review]
generate correct collation keys

This patch changes eog_image_get_collate_key() that it returns a key suitable for filename comparision. This should sort the images correctly.
Comment 2 Lucas Rocha 2006-06-01 01:06:00 UTC
Fixed in gnome-2-14, HEAD, and eog-ng branches. Thanks!

2006-05-31  Lucas Rocha  <lucasr@gnome.org>

        * libeog/eog-image.c (eog_image_get_collate_key): properly sort
        filenames containing numbers (Fixes bug #340957). Patch from
        Felix Riemann <felix@hsgheli.de>.
Comment 3 Claudio Saavedra 2007-03-08 17:05:22 UTC
*** Bug 416118 has been marked as a duplicate of this bug. ***