From 3dfc0cc717e35b61ca044cedbbf55d7500899e4a Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Mon, 11 Nov 2024 10:57:18 +0100 Subject: [PATCH] Sort structure levels by name in participant-list (#4333) --- 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 {