Skip to content

Tag list: sort planning tags alphabetically with da-DK collation #2126

Closed

Description

@renemadsen

Problem

The tag list served by GET …/items-planning-pn/tags (ItemsPlanningTagsService.GetItemsPlanningTags) is not in Danish alphabetical order. Every tag picker built on it inherits that order, including backend-configuration's "Redigér etiketter" dialog, the tag filters and the task wizard.

Reproduce (fictional data)

Create tags Øko, Beta, Åben, Alfa, Æble and open any tag picker.

Actual: Åben, Alfa, Beta, Æble, Øko. Expected (da-DK): Alfa, Beta, Æble, Øko, Åben (Æ, Ø, Å after Z, in that order).

Root cause

GetItemsPlanningTags sorts in SQL: .Select(...).OrderBy(x => x.Name).ToListAsync(). The order therefore comes from the MariaDB column collation (utf8mb4_general_ci), which folds Å to A and does not apply Danish rules.

Fix sketch

Tests

  • Integration: tags created in the order Øko, Beta, Åben, Alfa, Æble → GetItemsPlanningTags returns Alfa, Beta, Æble, Øko, Åben.

Related: microting/eform-backendconfiguration-plugin#1334, #1321.

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Sep 27, 2026
  2. renemadsen commented on Sep 27, 2026

    @renemadsen
    MemberAuthor

    Fixed by #2127 (merged to stable). GetItemsPlanningTags sorts tag names in memory with da-DK collation (Æ, Ø, Å after Z; "aa" = "å"), so every tag picker lists them in Danish alphabetical order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions