mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
sorting top page chronologically
This commit is contained in:
parent
4e2fccd03e
commit
98e866e88f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue