After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 658173 - File Roller does not use natural order sorting
File Roller does not use natural order sorting
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
3.0.x
Other All
: Normal trivial
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2011-09-04 13:04 UTC by Andrew Woollard
Modified: 2011-09-08 17:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to resolve bug (3.72 KB, patch)
2011-09-08 12:05 UTC, Andrew Woollard
none Details | Review

Description Andrew Woollard 2011-09-04 13:04:28 UTC
The sorting algorithm (by the 'Name' column) used by fileroller is not 'natural order sorting'. Other GNOME packages (eg. Nautilus) have switched to using this algorithm and is generally preferred by the users of GNOME. File Roller should follow the trend.

File Roller currently sorts the files like this:

rfc1.txt
rfc2086.txt
rfc822.txt

But, it would be better, and is preferred, if File Roller listed the files like this:

rfc1.txt
rfc822.txt
rfc2086.txt

You can find more information, and implementations of the algorithm here: http://sourcefrog.net/projects/natsort/
Comment 1 Andrew Woollard 2011-09-08 12:05:11 UTC
Created attachment 195978 [details] [review]
Patch to resolve bug
Comment 2 Paolo Bacchilega 2011-09-08 17:01:32 UTC
Thanks for the patch, but I've fixed the problem using the function g_utf8_collate_key_for_filename provided by glib for this very purpose.