Created
August 8, 2013 22:39
-
-
Save nanusdad/6189497 to your computer and use it in GitHub Desktop.
Meteor publish with sort
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
Meteor.publish('todos', function() { | |
return Todos.find({}, { | |
sort: { | |
timestamp: -1 | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment