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() { parties() {
return Parties.find({owner: Meteor.userId()}); return Parties.find(
{owner: Meteor.userId()},
{sort: {name: 1}},
);
}, },
charactersInParty(partyId) { charactersInParty(partyId) {
var userId = Meteor.userId(); var userId = Meteor.userId();

View File

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