Bug 160282

Summary: files sorted in wrong order
Product: [Frameworks and Libraries] kdelibs Reporter: Matthew Woehlke <mwoehlke.floss>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: cfeck
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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.