diff options
| author | Eren Karakas <[email protected]> | 2024-11-19 09:08:45 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2024-11-19 09:08:45 +0000 |
| commit | e4cc6e69430049366434e3383b1d2ef283ed22cc (patch) | |
| tree | bd7e42cc1413a368545027ba23bbb2ed355e5bd0 /src/org.kde.dolphin.appdata.xml | |
| parent | e893ceebb5a7295268ecf0ae2be5fb3fe07dfdbd (diff) | |
natural sort: exclude extension when comparing filenames
Currently natural sort compares the entire filenames
(basename.extension) when sorting. This causes eg.
"a 2.txt" to appear before "a.txt" when sorted by ascending.
This is unintuitive since people prioritize basenames more
than file extensions.
Instead, change natural sort to compare by basename only and
fallback to comparing extensions if basenames were equal.
This change causes "a.txt" to appear before "a 2.txt" and
matches how other platforms such as GNOME and Windows behave.
BUG: 416025
BUG: 470538
BUG: 421869
BUG: 312027
Diffstat (limited to 'src/org.kde.dolphin.appdata.xml')
0 files changed, 0 insertions, 0 deletions
