Bug 387969

Summary: Sort files in natural sorting, like dolphin ("1 file, 2 file", etc instead "1 file, 10 file, 11 file", etc)
Product: [Applications] ark Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Ömer Fadıl USTA <omerusta>
Status: RESOLVED FIXED    
Severity: wishlist CC: edkasp, hasezoey, nate, omerusta, postix, rthomsen6
Priority: NOR    
Version First Reported In: 24.01.75   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: sorting in dolphin
sorting in ark

Description Patrick Silva 2017-12-16 18:39:33 UTC
Created attachment 109416 [details]
sorting in dolphin

Ark and Dolphin use different methods to sort the files, compare my screenshots.
Comment 1 Patrick Silva 2017-12-16 18:40:10 UTC
Created attachment 109417 [details]
sorting in ark
Comment 2 Edmund Kasprzak 2018-02-26 15:29:06 UTC
I can confirm that.

In Dolphin, you can choose if you want to sort using "Natural sorting" or "Alphabetical sorting" (and then insensitive or sensitive).

By default, dolphin sorts with natural mode.

In Ark, there is no settings to choose a sorting mode, but default one is "Alphabetical".

So, there is a mismatch in default sorting mode.
I think that it should be consistent in all KDE apps by default.
Comment 3 Patrick Silva 2019-12-05 23:57:55 UTC
*** Bug 414856 has been marked as a duplicate of this bug. ***
Comment 4 Patrick Silva 2022-05-01 03:37:52 UTC
*** Bug 453228 has been marked as a duplicate of this bug. ***
Comment 5 Ömer Fadıl USTA 2022-05-10 05:19:24 UTC
If it is okey for everyone i would like to give a try to fix this problem
Comment 6 Ömer Fadıl USTA 2022-05-10 06:00:25 UTC
This is the patch which i have prepared, i will be glad if you have time to test it after (if it is) merged
https://invent.kde.org/utilities/ark/-/merge_requests/117
Comment 7 Bug Janitor Service 2025-03-05 11:26:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/ark/-/merge_requests/279
Comment 8 Waqar Ahmed 2025-03-25 12:32:01 UTC
Git commit 55b6d6e68616f2102fe3b7a4b4182ec6e403a3b1 by Waqar Ahmed, on behalf of Vladislav Kachegov.
Committed on 25/03/2025 at 12:31.
Pushed by waqar into branch 'master'.

Implement Dolphin-style natural string sorting

Enabled natural string sorting to match Dolphin's order, improving human-friendly
string comparison. Updated the function comment for clarity and noted potential
refactoring to a framework utility for maintainability.

M  +42   -0    part/archivesortfiltermodel.cpp
M  +4    -0    part/archivesortfiltermodel.h

https://invent.kde.org/utilities/ark/-/commit/55b6d6e68616f2102fe3b7a4b4182ec6e403a3b1