Skip to content

Commit

Permalink
Sort structure levels by name in participant-list
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed Nov 8, 2024
1 parent 9bcedac commit 8f6a72e
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 8f6a72e

Please sign in to comment.