sorting top page chronologically

This commit is contained in:
Sacha Greif 2012-09-06 11:41:56 +09:00
parent 4e2fccd03e
commit 98e866e88f

View file

@ -3,7 +3,7 @@ Template.top.show = function(){
};
Template.top.posts = function(){
var posts = Posts.find({}, {sort: {headline: 1}});
var posts = Posts.find({}, {sort: {submitted: -1}});
return posts;
};