Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611820 - kde-frameworks/kio: numeric mode per default in natural sorting
Summary: kde-frameworks/kio: numeric mode per default in natural sorting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-05 20:36 UTC by Felix Büttner
Modified: 2017-06-24 08:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to make numeric sorting the default. (kio-gwenview.patch,461 bytes, patch)
2017-03-05 20:36 UTC, Felix Büttner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Büttner 2017-03-05 20:36:48 UTC
Created attachment 466090 [details, diff]
patch to make numeric sorting the default.

There is a known bug upstream that describes that kio5 sorts files containing numbers now in a counter-intuitive way. Say you have files named "01.png", "02.png", "10.png", it would be sorted to "01.png", "10.png", "02.png". AFAIK, the only software that is affected is gwenview, at least here it is particularly annoying when clicking through, e.g., a time series of images.

Here is the link to the confirmed bug:

https://bugs.kde.org/show_bug.cgi?id=343452

The bug includes a patch, which has been confirmed to work by the developers:

https://git.reviewboard.kde.org/r/128574/

but they don't apply it because it would be better if users can decide how they want things to be sorted. While I agree that this would ultimately be the best solution, I believe that by far most users would want their files to be sorted numerically and this should be the default until another solution has been implemented. I therefore propose to apply the patch in the gentoo ebuild system until upstream has fixed the problem.

Attached the patch as it works with gentoo (only the first three lines are different).
Comment 1 Andreas Sturmlechner gentoo-dev 2017-06-24 08:56:26 UTC
Fixed in kio-5.34.0.

https://cgit.kde.org/kio.git/commit/?id=f29bbfb1c17dbfa92b27fa6d5a1c86b06a71a6b8