Bug 420555 - Sorting mode (natural/alphabetical) is not applied immediately
Summary: Sorting mode (natural/alphabetical) is not applied immediately
Status: RESOLVED DUPLICATE of bug 368121
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.12.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-25 09:55 UTC by Alexander M.
Modified: 2021-04-14 12:46 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Changing sorting mode will only take effect on next Settings dialog launch. (1.34 MB, image/gif)
2020-04-25 09:55 UTC, Alexander M.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander M. 2020-04-25 09:55:06 UTC
Created attachment 127851 [details]
Changing sorting mode will only take effect on next Settings dialog launch.

SUMMARY

Since I updated to KDE Apps 20.04 yesterday I've observed two issues with the sorting functionality:

1) "Natural" sorting mode is broken, resulting in filenames sorting as if "Alphabetical, case insensitive" was selected - i.e., filenames with numbers went from the natural 1, 2, 3, 10, 20, 30 to 1, 10, 2, 20, 3, 30. Switching between the different modes will not change that.

2) Sorting settings will not take effect immediately when pressing "Apply" or "OK", but on the next time the Settings dialog is opened.

I've made a little GIF which I've attached, hopefully it will showcase the problem adequately.

Also, I should mention that I'm not entirely certain that the issue manifested in 20.04; it could be that it's been already present in earlier versions and I only just noticed because I happened to do some work with a folder containing numbered files.


STEPS TO REPRODUCE
1. Install KDE Apps 20.04 (?)
2. Go to a folder containing numbered files
3. Mess with the sorting modes


OBSERVED RESULT
Sorting is broken.


EXPECTED RESULT
Sorting is not broken.


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2
Comment 1 Szczepan Hołyszewski 2020-06-24 21:54:18 UTC
For me, natural sorting does not work at all, no matter how many times I apply the dialog.

This feature is completely broken. Please raise the priority.
Comment 2 Szczepan Hołyszewski 2020-06-24 21:55:20 UTC
EDIT to add version: 20.04.2
Comment 3 J 2020-09-11 00:44:06 UTC
This is broken for me on 20.04.3
Comment 4 J 2020-09-11 01:17:31 UTC
BTW
Manually setting Collation and Sorting (Personalisation > Regional Setting > Formats) to my regional language fixes this issue.
Comment 5 Alexander M. 2021-04-03 08:39:49 UTC
KDE Plasma: 5.21.3
KDE Frameworks: 5.80.0

Part 1 of this issue has seemingly been fixed, i.e. in Natural mode the filenames sort as expected: 1, 2, 3, 10, 20, 30, etc.

Part 2 is still in effect.

(PROPER) STEPS TO REPRODUCE:

1. Create a test folder and inside it create e.g. 6 text files called 1, 2, 3, 10, 20 and 30, respectively.
2. Depending on your selected sorting type, these files will be sorted in a certain order. E.g. in the default natural mode they will sort as 1, 2, 3, 10, 20, 30.
3. Open Dolphin's settings, select a different sorting mode, press OK or Apply.
4. Observe that the files stay in their current sorting mode.
5. Open Dolphin's settings again.
6. The moment you do so, observe how the sorting settings you previously selected are now applied.

The exact same thing will happen if after step 4, you instead simply close Dolphin and re-open it: the new sorting will now be applied. It's almost as if Dolphin will not refresh its file sorting logic until the next UI event that forces it to refresh the viewport (...or something :D).
Comment 6 Patrick Silva 2021-04-14 12:46:43 UTC

*** This bug has been marked as a duplicate of bug 368121 ***