Bug 379185 - file sort order by name is wrong in dolphin/kate file open dialog/etc
Summary: file sort order by name is wrong in dolphin/kate file open dialog/etc
Status: RESOLVED DOWNSTREAM
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-25 09:31 UTC by Vadym Krevs
Modified: 2017-04-27 11:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot illustrating the problem. (138.89 KB, image/png)
2017-04-25 09:31 UTC, Vadym Krevs
Details

Note You need to log in before you can comment on or make changes to this bug.
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.