mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
Sort organizations before returning all (#2877)
This commit is contained in:
@@ -34,7 +34,8 @@ export class OrganizationService implements OrganizationServiceAbstraction {
|
|||||||
response.push(new Organization(organizations[id]));
|
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 }) {
|
async save(organizations: { [id: string]: OrganizationData }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user