Bug 160282 - files sorted in wrong order
Summary: files sorted in wrong order
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 23:18 UTC by Matthew Woehlke
Modified: 2011-08-10 15:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Woehlke 2008-04-02 23:18:10 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 4.1.2 
OS:                Linux

The items '721C' and '8QXEV' should be sorted in that order, not sorted with '8' < '721'; basically, "natural" sorting should consider whole "words" (separated by non-alphanumeric characters) instead of behaving like 'sort -n'... especially if there is no way to turn it off (I didn't find one).

So, e.g. '2 - foo', '10 - bar' would still be sorted in that order, but '24A', '4GX' would be sorted with '24A' first.
Comment 1 Christoph Feck 2011-08-10 15:42:03 UTC
> separated by non-alphanumeric characters

This would make "Text10" and "Text2" appear in that order...

Anyway, the "natural sort" behaviour can now be switched off.