Skip to content

Commit

Permalink
Step 13.3: Add sorting by party name to PartiesList
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and DAB0mB committed Dec 14, 2016
1 parent 0f871e6 commit 8d2756a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/imports/app/parties/parties-list.component.ts
Expand Up @@ -36,7 +36,11 @@ export class PartiesListComponent implements OnInit, OnDestroy {
};

this.partiesSub = MeteorObservable.subscribe('parties', options).subscribe(() => {
this.parties = Parties.find({}).zone();
this.parties = Parties.find({}, {
sort: {
name: this.nameOrder
}
}).zone();
});
}

Expand Down

0 comments on commit 8d2756a

Please sign in to comment.