Created
January 5, 2016 11:56
-
-
Save lukejagodzinski/ef901069af9cbc707c96 to your computer and use it in GitHub Desktop.
Article: Sorting with Relations in Meteor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.Users.helpers({ | |
posts: function() { | |
return Posts.find({}, { | |
sort: { | |
'author.name': 1 | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment