-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sort advanced attribute list using locale aware sort #6175
Description
Overview
Additional Attributes are sorted by string ascii values, resulting in 10 coming before 2.
This results in strange behavior like the KP2A URL fields in the Browser integration tab being ordered oddly. When adding a 10th Additional URL, the new line will appear after the 1st entry and before the 2nd, not at the end of the list as you'd expect.
Steps to Reproduce
- Create 10 "Additional URLs" on an entry.
- Note that the 10th is added before the 2nd entry in the list.
- Flip to the Advanced tab and see why.
Expected Behavior
10 should appear at the end of the list.
Actual Behavior
10 appears after 1 and before 2.
Context
Note that this also happens in Windows and should happen on every platform.
KeePassXC - Version 2.6.4
Revision: 34a78f0
Distribution: Flatpak
Qt 5.15.2
Debugging mode is disabled.
Operating system: KDE Flatpak runtime (System: Ubuntu 20.04.2 LTS)
CPU architecture: x86_64
Kernel: linux 5.8.0-43-generic
Enabled extensions:
- Auto-Type
- Browser Integration
- SSH Agent
- KeeShare (signed and unsigned sharing)
- YubiKey
Cryptographic libraries:
- libgcrypt 1.8.7
Desktop Env: Gnome
Windowing System: X11
