diff --git a/bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.ts b/bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.ts index 87a392901c..0da0ac81c7 100644 --- a/bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.ts +++ b/bitwarden_license/bit-web/src/app/secrets-manager/layout/org-switcher.component.ts @@ -10,7 +10,10 @@ import type { Organization } from "@bitwarden/common/models/domain/organization" templateUrl: "org-switcher.component.html", }) export class OrgSwitcherComponent { - protected organizations$: Observable = this.organizationService.organizations$; + protected organizations$: Observable = + this.organizationService.organizations$.pipe( + map((orgs) => orgs.sort((a, b) => a.name.localeCompare(b.name))) + ); protected activeOrganization$: Observable = combineLatest([ this.route.paramMap, this.organizationService.organizations$,