From 8f6a72e48616238be5ddf7bb1ca13e08ad439641 Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Fri, 8 Nov 2024 13:35:46 +0100 Subject: [PATCH] Sort structure levels by name in participant-list --- client/src/app/site/pages/meetings/view-models/view-user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/view-models/view-user.ts b/client/src/app/site/pages/meetings/view-models/view-user.ts index dc967662c1..783c9f4c98 100644 --- a/client/src/app/site/pages/meetings/view-models/view-user.ts +++ b/client/src/app/site/pages/meetings/view-models/view-user.ts @@ -270,7 +270,7 @@ export class ViewUser extends BaseViewModel /* implements Searchable */ { } public structure_levels(meetingId?: Id): ViewStructureLevel[] { - return this.getMeetingUser(meetingId)?.structure_levels ?? []; + return (this.getMeetingUser(meetingId)?.structure_levels ?? []).sort((a, b) => a.name.localeCompare(b.name)); } public structure_level(meetingId?: Id): string {