Bug 191865

Summary: File, folder sorting problem
Product: [Applications] dolphin Reporter: Martin Girard <martin.girard5>
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 16.12.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Martin Girard 2009-05-07 01:35:04 UTC
Version:           1.2.1 (using 4.2.2 (KDE 4.2.2) "release 114", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.21-0.1-default

In elusive circumstances, file names with multiple terms (separated by an ampersand) may not sort properly; files' first terms may sometimes be considered equal even though their lengths are different, if one's beginning contains the other (ex: ABC, ABC'DE). Then the order is decided by comparing the second term.

The bug can be reproduced by creating files/folders named *exactly* as follows:
E & G
E & J
Em & M
E & S
Choosing different file names may yield different results even though the relative order should not change. I could not narrow the problem further down.
Comment 1 Peter Penz 2009-05-07 23:54:42 UTC
Thanks for the report, this seems to be a duplicate of 181211 (at least the same function is responsible for the comparison).

*** This bug has been marked as a duplicate of bug 181211 ***
Comment 2 Peter Penz 2009-05-08 00:43:03 UTC
SVN commit 965099 by ppenz:

Added test cases for bug 191865 and 181211. The tests pass -> the root cause of the issue seems to be in the used proxy model. I'll check this during the next week...

CCBUG: 191865
CCBUG: 181211

 M  +9 -0      kstringhandlertest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=965099