Merge pull request #4232 from Ben0it-T/sort_organizations_teams_people

Sort Organizations, Teams and People
This commit is contained in:
Lauri Ojansivu 2021-12-14 23:44:21 +02:00 committed by GitHub
commit 73408c73af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 14 deletions

View file

@ -521,7 +521,7 @@ Users.helpers({
},
orgsUserBelongs() {
if (this.orgs) {
return this.orgs.map(function(org){return org.orgDisplayName}).join(',');
return this.orgs.map(function(org){return org.orgDisplayName}).sort().join(',');
}
return '';
},
@ -533,7 +533,7 @@ Users.helpers({
},
teamsUserBelongs() {
if (this.teams) {
return this.teams.map(function(team){ return team.teamDisplayName}).join(',');
return this.teams.map(function(team){ return team.teamDisplayName}).sort().join(',');
}
return '';
},