1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-24 17:11:55 +01:00

Sort organizations before returning all (#2877)

This commit is contained in:
Andreas Coroiu 2022-06-09 16:43:35 +01:00 committed by GitHub
parent c1b559f2b0
commit 7922458fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,8 @@ export class OrganizationService implements OrganizationServiceAbstraction {
response.push(new Organization(organizations[id]));
}
}
return response;
const sortedResponse = response.sort((a, b) => a.name.localeCompare(b.name));
return sortedResponse;
}
async save(organizations: { [id: string]: OrganizationData }) {