mirror of
https://github.com/bitwarden/browser
synced 2024-12-24 00:54:30 +01:00
Sort organizations before returning all (#2877)
This commit is contained in:
parent
c1b559f2b0
commit
7922458fde
@ -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 }) {
|
||||
|
Loading…
Reference in New Issue
Block a user