Incorrect sort order in thunar with numeric names

Bug #376156 reported by JiHO
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Thunar File Manager
Confirmed
Unknown
thunar (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: thunar

When a folder contains other folders with only numeric names and that the highest number is over 100, thunar does not keep the sorting order correctly.

Please test with:

#!/bin/bash
dir="foo"
for (( i = 1; i < 140; i++ )); do mkdir -p $dir/$i; done
thunar $dir
exit 0

the sorting order will be correct. Now go up the file tree and then back in the folder: the order is correct for 1 to 9 but then is garbled. It is not random though: the (incorrect) order is the same every time the folder is visited. Re-sorting by names will restore the correct order but it will still not stick.

This has been testing on 2 installations of xubuntu with the following characteristics:

$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

$ apt-cache policy thunar
thunar:
  Installed: 1.0.0-1ubuntu3
  Candidate: 1.0.0-1ubuntu3
  Version table:
 *** 1.0.0-1ubuntu3 0
        500 http://mirrors.rit.edu jaunty/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at: http://bugzilla.xfce.org/show_bug.cgi?id=5359

Changed in thunar (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in thunar:
status: Unknown → Confirmed
Changed in thunar (Ubuntu):
importance: Medium → Low
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Should be fixed in 1.4.0.

Changed in thunar (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
drkwv (bl3-drkwv) wrote :

Now it's wrongly detects numbers in filenames which are not intended to have decimal nubmers. For example, UUID filenames sort order:

touch 002bf5b3-0092-4167-bbfd-d04cba0fb222
touch 16289816-68ff-42c8-bf27-9d6694337244
touch 29098ad1-9e9f-4569-bbe7-8c3b2bdd6ee7
touch 2ad67b49-cc91-47fc-a825-ee55487d550a
touch 2c3df632-fbd3-4595-8cf5-86bc3a3701b1
touch 394473ae-eb2c-4ad9-a1de-80c29336fe06
touch 3d9f6993-0087-4bc7-bf0b-e1656b31ded0

Expected order:

002bf5b3-0092-4167-bbfd-d04cba0fb222
16289816-68ff-42c8-bf27-9d6694337244
29098ad1-9e9f-4569-bbe7-8c3b2bdd6ee7
2ad67b49-cc91-47fc-a825-ee55487d550a
2c3df632-fbd3-4595-8cf5-86bc3a3701b1
394473ae-eb2c-4ad9-a1de-80c29336fe06
3d9f6993-0087-4bc7-bf0b-e1656b31ded0

Actual order:

2ad67b49-cc91-47fc-a825-ee55487d550a
002bf5b3-0092-4167-bbfd-d04cba0fb222
2c3df632-fbd3-4595-8cf5-86bc3a3701b1
3d9f6993-0087-4bc7-bf0b-e1656b31ded0
29098ad1-9e9f-4569-bbe7-8c3b2bdd6ee7
394473ae-eb2c-4ad9-a1de-80c29336fe06
16289816-68ff-42c8-bf27-9d6694337244

Thunar 1.6.3

Revision history for this message
Dmitry G. (hint) wrote :

Confirm previous comment.
Thunar 1.6.3 @ xubuntu 14.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.