All boards view (boardsList) - sort Organizations and Teams by Display Name

This commit is contained in:
Ben0it-T 2021-12-12 18:55:49 +01:00
parent 8e6bd81abe
commit cec05dae47

View file

@ -89,7 +89,7 @@ BlazeComponent.extendComponent({
},
teamsDatas() {
if(Meteor.user().teams)
return Meteor.user().teams;
return Meteor.user().teams.sort((a, b) => a.teamDisplayName.localeCompare(b.teamDisplayName));
else
return [];
},
@ -101,7 +101,7 @@ BlazeComponent.extendComponent({
},
orgsDatas() {
if(Meteor.user().orgs)
return Meteor.user().orgs;
return Meteor.user().orgs.sort((a, b) => a.orgDisplayName.localeCompare(b.orgDisplayName));
else
return [];
},