People view - sort Organizations and Teams cols

This commit is contained in:
Ben0it-T 2021-12-12 18:20:59 +01:00
parent eb9d44f5f0
commit 8e6bd81abe

View file

@ -521,7 +521,7 @@ Users.helpers({
}, },
orgsUserBelongs() { orgsUserBelongs() {
if (this.orgs) { 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 ''; return '';
}, },
@ -533,7 +533,7 @@ Users.helpers({
}, },
teamsUserBelongs() { teamsUserBelongs() {
if (this.teams) { 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 ''; return '';
}, },