Permalink
Browse files

Sort posts by submitted timestamp.

chapter7-8
  • Loading branch information...
tmeasday committed Apr 11, 2013
1 parent c92904b commit 3f25a2a290bea7d61f87a6506f13f9edb6be37a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/templates/posts/posts_list.js
@@ -1,5 +1,5 @@
Template.postsList.helpers({
posts: function() {
- return Posts.find();
+ return Posts.find({}, {sort: {submitted: -1}});
}
});

0 comments on commit 3f25a2a

Please sign in to comment.