Skip to content

Commit

Permalink
Sort roles alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
d22 committed Jan 24, 2024
1 parent 361ca78 commit 9e62dde
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class RoleSelectComponent {
if (area) {
if (this.mappedRoles.has(area)) {
this.mappedRoles.get(area).push(role)
this.mappedRoles.get(area).sort((a, b) => a.role_type.desc.localeCompare(b.role_type.desc))
} else {
this.mappedRoles.set(area, [role])
}
Expand Down

0 comments on commit 9e62dde

Please sign in to comment.