[dolphin] [Bug 425457] Sorting by "Modified" should place most recent items on top

Méven <[email protected]> Thu, 11 Sep 2025 02:28:30 +0000
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=425457

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/ad6ccf2
                   |                            |b86b3e97138d13518bd6ea8fd67
                   |                            |0d3530
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from Méven <[email protected]> ---
Git commit ad6ccf2b86b3e97138d13518bd6ea8fd670d3530 by Méven Car, on behalf of
Nathan Williams.
Committed on 11/09/2025 at 02:28.
Pushed by meven into branch 'master'.

dolphinview: add preferred sort order for roles

This commit ensures that both the menu and column headers in table view
will have the same default sorting (ascending/descending) for each role.
It also saves the user's preferences for each role throughout the session.

Previously, sorting by "Modified" would always sort by "Oldest First."
If the user then changed to "Newest First" and sorted again by "Name,"
files would be sorted in reverse alphabetical order (Z-A).

Now, sorting by "Modified" defaults to "Newest First." If a user switches
between multiple roles, the default for each role will be used unless
the user changes to a non-default sort order. In that case, the user's
preference will be applied.

Defaults:

**Descending Order:**

Time-based roles
- modificationtime
- creationtime
- accesstime
- deletiontime
- imageDateTime
- releaseYear

Size/dimension roles
- size
- width
- height
- pageCount
- wordCount
- lineCount

Quality/Quantity roles
- rating
- duration
- bitrate
- frameRate

**Ascending order:**

- Text based roles (A-Z)
- All other roles

M  +2    -8    src/kitemviews/private/kitemlistheaderwidget.cpp
M  +56   -0    src/views/dolphinview.cpp
M  +22   -0    src/views/dolphinview.h
M  +5    -3    src/views/dolphinviewactionhandler.cpp

https://invent.kde.org/system/dolphin/-/commit/ad6ccf2b86b3e97138d13518bd6ea8fd670d3530

-- 
You are receiving this mail because:
You are on the CC list for the bug.