diff --git a/bitwarden_license/bit-web/src/app/secrets-manager/shared/access-policies/access-selector.component.ts b/bitwarden_license/bit-web/src/app/secrets-manager/shared/access-policies/access-selector.component.ts index 942d14df48..a5b4f4b05d 100644 --- a/bitwarden_license/bit-web/src/app/secrets-manager/shared/access-policies/access-selector.component.ts +++ b/bitwarden_license/bit-web/src/app/secrets-manager/shared/access-policies/access-selector.component.ts @@ -57,7 +57,16 @@ export class AccessSelectorComponent implements OnInit { protected rows$ = new Subject(); @Input() private set rows(value: AccessSelectorRowView[]) { - this.rows$.next(value); + const sorted = value.sort((a, b) => { + if (a.icon == b.icon) { + return a.name.localeCompare(b.name); + } + if (a.icon == AccessSelectorComponent.userIcon) { + return -1; + } + return 1; + }); + this.rows$.next(sorted); } private maxLength = 15;