Parties are now sorted in both character lists.

This commit is contained in:
Jacob
2017-07-20 16:18:15 +01:00
parent 2a332a2965
commit aff2f1f438
2 changed files with 8 additions and 3 deletions

View File

@@ -7,7 +7,10 @@ Template.characterList.helpers({
);
},
parties() {
return Parties.find({owner: Meteor.userId()});
return Parties.find(
{owner: Meteor.userId()},
{sort: {name: 1}},
);
},
charactersInParty(partyId) {
var userId = Meteor.userId();

View File

@@ -5,8 +5,10 @@ Template.characterSideList.onCreated(function() {
Template.characterSideList.helpers({
parties() {
var userId = Meteor.userId();
return Parties.find({owner: userId});
return Parties.find(
{owner: Meteor.userId()},
{sort: {name: 1}},
);
},
charactersInParty() {
var userId = Meteor.userId();