Browse Source

Commit 7-8: Sort posts by submitted timestamp.

Frederic G. MARAND 9 years ago
parent
commit
ce3568ed04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/templates/posts/posts_list.js

+ 1 - 1
client/templates/posts/posts_list.js

@@ -8,7 +8,7 @@
  */
 Template.postsList.helpers({
   posts: function () {
-    return Posts.find();
+    return Posts.find({}, { sort: { submitted: -1 }});
   }
 });