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
1 changed files with 2 additions and 1 deletions

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 }) {