Bug 489152

Summary: Tags in Add/Edit Tags window are not automatically sorted
Product: [Applications] dolphin Reporter: m1vri31c
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev, kfm-devel
Priority: NOR    
Version: 24.05.1   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description m1vri31c 2024-06-25 01:16:23 UTC
SUMMARY
Tags in Add/Edit Tags menu (accessed via clicking Add… or Edit… in Info Panel) are not automatically sorted. I vaguely remember them being sorted alphabetically in the past, but I am questioning my memory, so this is part bug report part feature request. 

Tags in that window should be sorted in some way. Alphabetical is an obvious choice, with popularity/number of times used another useful way to sort tags. This would apply recursively to different levels of tags.

STEPS TO REPRODUCE
1. Make sure you have multiple tags
2. Open the Add/Edit Tags window via the Info Panel
Note on reproducibility: I added most of my tags in Plasma 5, and due to bug 488588 I can't add new tags to be sorted in this window to test that.

OBSERVED RESULT
Tags are not sorted. Some chunks of the list seem like they are sorted alphabetically but many tags are not.

EXPECTED RESULT
Tags are sorted, preferably in a manner chosen by user, e.g. alphabetical or by popularity.

SOFTWARE/OS VERSIONS
NixOS 24.11 (unstable channel)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0 
Qt Version: 6.7.1
Comment 1 TraceyC 2024-07-01 17:26:51 UTC
Looks like this was implemented in https://bugs.kde.org/show_bug.cgi?id=152600 in v 16.12.2

I am able to reproduce the bug with Plasma 6. I only had one tag I had created with Plasma 5 "kitinerary"
I then created 3 new tags "a", "epub", "plasma". All those are sorted alphabetically but before "kitinerary"
Any new tags after that were sorted in the Edit Tags window alphabetically - except "kitinerary" which remains at the bottom

Operating System: Solus 4.5
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2