Thunar 1-6-10: wrong sorting

Ralf Mardorf ralf.mardorf at alice-dsl.net
Sun Sep 18 11:51:26 CEST 2016


On Sun, 18 Sep 2016 09:41:46 +0200, Hartmut Haase wrote:
>> Maybe it's because 9 < 12 ?
>>    
>sure, but thze file names should be sorted. If I make an ls in that 
>folder I get
>
>12nam
>9name
>All applications that use the folder show the file names in the
>correct order.
>you can try yourself.  

By default ls doesn't sort "natural".

[rocketmouse at archlinux Desktop]$ touch 12nam 9name
[rocketmouse at archlinux Desktop]$ ls -l
total 0
-rw-r--r-- 1 rocketmouse rocketmouse 0 Sep 18 11:26 12nam
-rw-r--r-- 1 rocketmouse rocketmouse 0 Sep 18 11:26 9name
[rocketmouse at archlinux Desktop]$ ls -lv
total 0
-rw-r--r-- 1 rocketmouse rocketmouse 0 Sep 18 11:26 9name
-rw-r--r-- 1 rocketmouse rocketmouse 0 Sep 18 11:26 12nam
[rocketmouse at archlinux Desktop]$ ls --help | grep natural
  -v                       natural sort of (version) numbers within text

Regards,
Ralf


More information about the Xfce mailing list