GNOME Bugzilla – Bug 340957
Filenames containing numbers are not properly sorted (as how nautilus does)
Last modified: 2007-03-08 17:05:22 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.
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.
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>.
*** Bug 416118 has been marked as a duplicate of this bug. ***