Bug 434126

Summary: Sort by Name should default to A-Z
Product: [Applications] dolphin Reporter: Sylvain <ago.sylvain>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kfm-devel, yaomtc
Priority: NOR    
Version: 20.12.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sylvain 2021-03-08 01:45:34 UTC
SUMMARY

If one change the sort order from "modification time" to "name", the order remain "Z-A". When sorting by modification time, it make sense to have "Newest First" but then when shifting to sort by "name", it should default to "A-Z".

STEPS TO REPRODUCE
1. Sort by Modification Time
2. Order Newest First
3. Sort by Name

OBSERVED RESULT

 Need to also adjust the order "A-Z" to have the files "correctly" sorted.

EXPECTED RESULT

The files should get sorted "A-Z" automatically when the "Sort by Name" is selected.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora KDE
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Yao Mitachi 2024-06-27 18:06:42 UTC
Another option for sorting also has an issue like this, but in a slightly different way.

If you switch to "details view mode" and click any column header that's not currently being used for sorting, and then click on Name, you'll see that the default there is correctly set to A-Z, no matter what was previously set as the sort method. Then if you click on Modified, it defaults to oldest-to-newest. Personally I'd prefer it to default to newest-first, but this doesn't bother me as newest-first is just one click away. The point is, the arrow always starts pointing up - that is, ascending order.

The issue with the "Sort By" menu is this: the second set of radio buttons -- A-Z / Z-A, Oldest First / Newest First -- is PERSISTENT! Why?

Its behavior *should* be consistent with how the column headers work - it shouldn't matter whether the arrow in the previous column header was pointing up or down. It should always point up, or rather, it should always start with 0 or A as is the case with the details view mode.