Skip to content

Sort advanced attribute list using locale aware sort #6175

@pigsflew

Description

@pigsflew

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.

Example of the new KP2A_URL_# fields sorted badly

Steps to Reproduce

  1. Create 10 "Additional URLs" on an entry.
  2. Note that the 10th is added before the 2nd entry in the list.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions