Thunar 1-6-10: wrong sorting

Erik Dobák erik.dobak at gmail.com
Sun Sep 18 22:37:57 CEST 2016


if you sort by name and you get

12
9

you should do:

09
12

as 1 < 9 and 0 < 1

its an issue of the file naming and not of thunar. standar behavior across
any OS on earth...

E

On 18 September 2016 at 18:40, Andrzej <ndrw.xf at kurumi.co.uk> wrote:

> On 09/18/16 10:05, Hartmut Haase wrote:
>
>> Hi Martin ,
>>
>>> Sorting numbers instead of digits is useful because in some work we have
>>> a lot of files with increasing number at beginning :
>>>
>> maybe, but how do I get rid of it?
>>
>
> In thunar/thunar-file.c change all "g_utf8_collate_key_for_filename" to
> "g_utf8_collate_key". If that solves your issue you consider adding an
> option and submitting a patch.
>
> We use "g_utf8_collate_key_for_filename" to handle unicode and to make
> Thunar behave like other Gtk file manager. This function sorts any numbers
> in file names in numerical order, which in general is a feature (Thunar's
> old sorting algorithm did it as well) but I can understand if some would
> like to have an option to disable it.
>
> Cheers,
> Andrzej
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce
> http://www.xfce.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce/attachments/20160918/8ab8e9bf/attachment.html>


More information about the Xfce mailing list