fix(dev-infra): sort contributors alphabetically in `get-data.ts` script (#35997)

The `contributing-stats/get-data.ts` script, which is used to retrieve
org-wide contribution data, returned the contributors in retrieval
order.

This commit ensures contributors are ordered alphabetically, which makes
it easier to find the stats for a specific contributor.

PR Close #35997
This commit is contained in:
George Kalpakas 2020-03-10 22:24:28 +02:00 committed by Matias Niemelä
parent d8f9ec5291
commit 20f01163af
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ async function getAllOrgMembers() {
hasNextPage = results.organization.membersWithRole.pageInfo.hasNextPage;
cursor = results.organization.membersWithRole.pageInfo.endCursor;
}
return members;
return members.sort();
}
/**