Skip to content

Commit

Permalink
Sort structure levels by name in participant-list (#4333)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl authored Nov 11, 2024
1 parent 2cc5810 commit 3dfc0cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export class ViewUser extends BaseViewModel<User> /* 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 {
Expand Down

0 comments on commit 3dfc0cc

Please sign in to comment.