Re: [Geeqie-devel] Natural sort order for files and folders

2016-12-13 Thread Colin Clark
On 12/12/16 06:54, Klaus Ethgen wrote:
> Well, for directories, we have no choosable sort method. But ...
> ... For images you can choose the sort order via context menu. There is
> one, "sort nummerical", that is exactly what you ask for.
>
Hello Klaus

Unfortunately even for just files, the numerical sort is still not quite 
right for me - when there are alphas, lower case is not sorted next to 
upper case.

I now find that my proposed solution was implemented in Geeqie, but was 
deleted in commit bd34c324c92456f5182579d6922d7aba664f93c3 2009-12-19.

I can't find what bug 2917164 is, but it would seem it was not a real 
bug, but simply that the sort order is not the same as that produced by 
the ls command.


If I google "Natural sort order" - and from Roger's comments - I now see 
this is a well-known problem, and that there are an infinite number of 
differing opinions about this.

However it is clear from the documentation of 
g_utf8_collate_key_for_filename() that the GTK programmers are making a 
serious attempt to produce a function that resolves this.

I suggest I implement a new option in the Files tab of Preferences to 
select the collate method. The menus are then not cluttered up, and 
those who think an ASCII sort is sensible can continue to live happily.

If you don't want yet another option in the program - no problem - I can 
just patch my working copy.


Colin...





--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] Natural sort order for files and folders

2016-12-13 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi Colin,

Am Di den 13. Dez 2016 um 12:27 schrieb Colin Clark:
> I now find that my proposed solution was implemented in Geeqie, but was 
> deleted in commit bd34c324c92456f5182579d6922d7aba664f93c3 2009-12-19.
> 
> I can't find what bug 2917164 is,

I believe that this refer to [0][1]. Where the number come from, I
wasn't able to find.

> I suggest I implement a new option in the Files tab of Preferences to 
> select the collate method. The menus are then not cluttered up, and 
> those who think an ASCII sort is sensible can continue to live happily.
> 
> If you don't want yet another option in the program - no problem - I can 
> just patch my working copy.

No problem with that. Just go ahead. :-)

I also need to add some options on some points.

It might need some option cleanup in future but for now, better one to
much than one to less.

Regards
   Klaus

[0] https://sourceforge.net/p/geeqie/bugs/100/
[1] https://github.com/BestImageViewer/geeqie/issues/100
- -- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlhQHAcACgkQpnwKsYAZ
9qzZ7QwAwthkzLKf/EOLwDdhyK3XUMN9E5X47wQPTKguh1/2ZCAX9rgtBaLqrOuB
m5itbZ9JrGbnPET1etlNpBRqeMxJPSIZz306aV20efSU2n0uwVuCW7cMum/Obh/y
u7c7vouD1sjwH6F5KSaOdY9laimeL+WRDgAQUQr8YrFTnAxegLZKpITSmiQFMA3G
zHaaYdrdT/B0baHnL4NEHCpI8wMz8sjLPa2+bwAar1XGt+znEdR1MNhqR4oTr9Ki
1HT7DrvSKJXXCHODv692Dh7qsBPBtYvYMWYep46o9qOF0kS/pDbCOt4Xl7fCCrtM
CEDfBOL59QyxI94u2UpSN2Soyg9e60n0Qpu/UUCXvu2w4p06204aOCp44yi5LgNp
TwIBrOlC+k9QgtBTPmDUWzte7XH5uX3lwY9Dx09R11lrZxw/IbvZyLRVVXcovmig
I9wkPvRDRn7IgMUk/afDZjMyHm27zbx4p62kM0Big1rVQ8ZKi11C88wI7PAS+O9c
VYSvs4Nr
=NrFV
-END PGP SIGNATURE-

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel