Bug 186277 - KFileDialog ascending and descending sorting doesn't work
Summary: KFileDialog ascending and descending sorting doesn't work
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Applications
Component: kfileplacesview (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 189198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-06 00:04 UTC by Florian E.J. Fruth
Modified: 2009-05-04 21:07 UTC (History)
7 users (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 Florian E.J. Fruth 2009-03-06 00:04:06 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Debian testing/unstable Packages

KFileDialog doesn't use the correct sorting algorithm. My ~/.kde4/share/config/kdeglobals shows:

---------------------------------------------------------------------
[KFileDialog Settings]
Automatically select filename extension=true
Breadcrumb Navigation=true
Decoration position=0
LocationCombo Completionmode=5
PathCombo Completionmode=5
Previews=false
Recent URLs[$e]= **removed for the bugreport**
Show Bookmarks=false
Show Full Path=false
Show Preview=false
Show Speedbar=true
Show hidden files=true
Sort by=Name
Sort reversed=false
---------------------------------------------------------------------

So every open/save dialog should be sorted ascending by name - instead it always sorts descending.
Now if I click on the column header to get the list sorted, then my kdeglobals gets switched to "Sort reversed=true" and on the next start it again sorted descending. Clicking again on the column header changes the config to Sort reversed=false again (but on the next start it still sorts ascending...).
The setting seams to work in dolphin but not in the KFileDialogs.
Comment 1 kujub 2009-03-25 11:20:47 UTC
I can confirm this with 4.2.1 on ArchLinux 686.

If only works as expected with setting
View Style=Simple aka Short View.

With any other view style it *always* starts with sort order descending by name regardless of the settings. Even when switching between tree and detailed it insists on this. 

This is one of those annoying bugs that finally made me move away from KDE now (after years). SCNR
Comment 2 Frank Griffin 2009-03-27 18:53:51 UTC
I confirm for Mandriva Linux Spring 2009.1 as well.
Comment 3 Robin Pedersen 2009-04-02 22:42:46 UTC
Confirmed on 4.2.2, ArchLinux
Comment 4 Nick 2009-04-06 17:13:47 UTC
Confirmed on Kubuntu Jaunty 9.04 KDE 4.2.2

I tried moving kdeglobals and restarting the desktop but no change.
Comment 5 Andreas Hartmetz 2009-04-09 17:00:42 UTC
*** Bug 189198 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Hartmetz 2009-04-09 17:01:49 UTC
Fixed in revision 951352 in trunk.
Comment 7 Andreas Hartmetz 2009-04-09 17:06:56 UTC
SVN commit 951532 by ahartmetz:

Backport of revision 951352 from trunk (mostly sorting fixes)
CCBUG:186277


 M  +68 -66    kdiroperator.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=951532
Comment 8 DrSlony 2009-04-23 11:49:14 UTC
I confirm on gentoo 64 4.2.1 4.2.2, also present in amarok in the Files tab, they are sorted reverse.