Bug 315638 - Clicking on column headers does not sort ascending or descending
Summary: Clicking on column headers does not sort ascending or descending
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 4.10
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 17:00 UTC by tprotopopescu
Modified: 2017-01-07 23:28 UTC (History)
2 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 tprotopopescu 2013-02-22 17:00:25 UTC
Clicking on a column header does not sort the contents ascending or descending according to the category of the column. 

Reproducible: Always

Steps to Reproduce:
1. Go to view any folder in your mail
2. Click on a header (e.g. date, sender)
Actual Results:  
Nothing happens.

Expected Results:  
The contents of the mail folder should be sorted ascending or descending according to that category (e.g. clicking the 'sender' header should sort your emails by sender in alphabetical or reverse alphabetical order).

The aggregation settings have no effect on this. 

Workaround: 

There is a simple enough work-around. Right click on a column header --> 'sorting' and choose how you want to sort. 

This has problems though. Sorting in this manner sometimes resizes the column widths and sometimes also hides columns. Sorting by date in particular both resizes columns and hides the 'subject' column fairly reliably, about 8 out of 10 times.
Comment 1 tprotopopescu 2013-10-29 02:44:24 UTC
I notice that this behavior is actually a regression, hence change from minor to normal. Kmail 1 had the ability to sort columns ascending or descending by clicking on the column header (I had occasion to use kmail 1.13 on KDE 4.5 and found it had this functionality)
Comment 2 Vadim A. Misbakh-Soloviov (mva) 2014-11-04 20:40:45 UTC
I'd suggest to rename bug, since KMail2 don't even sort normally with manual sorting (and it also ignores accounts order from settings)
Comment 3 Vadim A. Misbakh-Soloviov (mva) 2014-11-04 20:42:02 UTC
(and s/opensuse/all/) in platform
Comment 4 Denis Kurz 2016-09-24 18:11:14 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 5 Vadim A. Misbakh-Soloviov (mva) 2016-09-24 20:30:09 UTC
in messageviewer (or how that part with list of letters is called) all works fine (so, reported bug itself is fixed).

But it is related, I guess, issue with accounts/folders list, where sorting applies in hardly strange way :)
Comment 6 Denis Kurz 2016-09-25 11:13:45 UTC
Vadim, for your interest: There is a button in Configure KMail -> Accounts, below the account list, that let's you configure the order of your accounts. Clicking on the header above the folder list sorts according to your configured order, switching between ascending and descending.

And also, thanks for your feedback!
Comment 7 Vadim A. Misbakh-Soloviov (mva) 2016-09-25 11:20:43 UTC
Yeah, I know about this button. And, as I said earlier, kmail ignores accounts order, that I specified there.
Or, at least, I don't know how to force it to respect it ;)
http://i.imgur.com/5x6Rr4S.png
Comment 8 Vadim A. Misbakh-Soloviov (mva) 2016-09-25 12:17:26 UTC
Eeerm. I just checked it once more and it works fine. So, nevermind ;)