Skip to content

Commit b571855

Browse files
committed
remove second sort
1 parent bb4dec7 commit b571855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/server/graphql/public/types/Organization.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const Organization: OrganizationResolvers = {
6262

6363
if (isOrgAdmin || isSuperUser(authToken)) {
6464
// Org admins and super users can see all teams
65-
return sortedTeams.sort((a, b) => a.name.localeCompare(b.name))
65+
return sortedTeams
6666
} else {
6767
// Regular users can see teams they're on plus public teams
6868
return sortedTeams.filter((team) => team.isPublic || authToken.tms.includes(team.id))

0 commit comments

Comments
 (0)