From b640c10c0465d6e46bf6c6f64632792b33e36822 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 20 Aug 2026 08:35:14 +0200 Subject: [PATCH] Improve sorting --- .../lib/account-selector/account-selector.component.html | 2 +- .../src/lib/account-selector/account-selector.component.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/ui/src/lib/account-selector/account-selector.component.html b/libs/ui/src/lib/account-selector/account-selector.component.html index 3fd21e58a..0ba679706 100644 --- a/libs/ui/src/lib/account-selector/account-selector.component.html +++ b/libs/ui/src/lib/account-selector/account-selector.component.html @@ -28,7 +28,7 @@ } - @for (account of accounts(); track account.id) { + @for (account of sortedAccounts(); track account.id) { { + return [...this.accounts()].sort((a, b) => { + return a.name.toLowerCase().localeCompare(b.name.toLowerCase()); + }); + }); + private readonly ngControl = inject(NgControl, { optional: true, self: true