Vulcan/client/views/posts/posts_new.js

8 lines
179 B
JavaScript
Raw Normal View History

2012-09-18 11:49:17 +09:00
Template.posts_new.posts = function(){
var posts = Posts.find({}, {sort: {submitted: -1}});
return posts;
};
Template.posts_new.created = function(){
window.sortBy="time";
}