Bug 379185

Summary: file sort order by name is wrong in dolphin/kate file open dialog/etc
Product: [Frameworks and Libraries] frameworks-kio Reporter: Vadym Krevs <vkrevs>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: elvis.angelaccio, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot illustrating the problem.

Description Vadym Krevs 2017-04-25 09:31:17 UTC
Created attachment 105179 [details]
Screenshot illustrating the problem.

openSUSE 42.2,
$ rpm -q dolphin kate plasma5-workspace-libs
dolphin-17.03.80-81.16.x86_64
kate-17.04.0-4.3.x86_64
plasma5-workspace-libs-5.9.4-306.2.x86_64


mkdir /tmp/dir
cd /tmp/dir
touch a1  a11  a112  a2  a211  a22  a221  a223  a3  a33  a331

Then compare the order of files in the output of "ls -alF" with the order of files in Dolphin or Kate's Open dialog when sorting by name. Clearly, the latter applications are not doing the expected thing.

See attached screenshot.
Comment 1 Elvis Angelaccio 2017-04-26 15:24:16 UTC
Works fine here, in the Open file dialog. What's your version of Qt?

For Dolphin, you need to disable Natural Sorting in Settings -> General -> Behavior -> Sorting Mode.
Comment 2 Vadym Krevs 2017-04-26 15:55:22 UTC
$ rpm -q libQt5Core5
libQt5Core5-5.8.0-287.1.x86_64

Disabling Natural sorting in Dolphin fixes this annoyance is Dolphin only. Is there not a KDE-wide config setting?
Comment 3 Christoph Feck 2017-04-27 11:27:18 UTC
openSUSE has a patched kio. See http://bugzilla.opensuse.org/1033668

Should not happen with default repositories, but you are using backport repos.