> On Sun, Dec 11, 2016 at 06:23:08PM +0000, Colin Clark wrote:
>This has been a long-time annoyance for me with Geeqie. For instance a 
>set of folders that gets ordered as:
>
>Scans 10
>
>Scans 2
>
>That clearly isn't what I want.

Nor do I.

What I think is going on, the first digit becomes the primary sorting field.  
So anything prefixed within a 1 is sorted with a higher priority than all other 
files.

$ cd /tmp

$ touch image-1.tif
$ touch image-100.tif
$ touch image-1500.tif
$ touch image-2.tif
$ touch image-25.tif
...

Just tested here under C locale (eg. ASCII/en_US.ISO8859-1)

(The following are a few possible locales: C, en_US.ISO8859-1, en_US.UTF-8, 
...)

$ LC_ALL="C" ls -al
$ LC_COLLATE="en_US.ISO8859-1" ls -al

Files are printed and sorted within the following manner using the above 
commands:

image-1.tif
image-100.tif
image-1500.tif
image-2.tif
image-25.tif

You appear correct, this previously mentioned issue is likely not LOCALE 
related.  I also do not like the sorting method (or much of anything with UTF), 
and still prefer simple C/ASCII.  (eg. Non-typeable chars.)

$ LC_COLLATE="en_US.UTF-8" ls -al
100.tif
10.tif
1.tif
2.tif

-- 
Roger
http://rogerx.freeshell.org/

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to