Template.top.show = function(){
  return Session.equals('state', 'list');
};

Template.top.posts = function(){
  var posts = Posts.find({}, {sort: {score: -1}});
  return posts;
};

Template.top.rendered = function(){
};
Template.top.show = function(){
  return Session.equals('state', 'list');
};

Template.top.posts = function(){
  var posts = Posts.find({}, {sort: {submitted: -1}});
  return posts;
};

Template.top.rendered = function(){
};
Order posts by submitted as we render them.
Order posts by submitted as we render them.

We still want them ordered by score when we publish (so we only see the highest scored). But we want to order them with a fixed order when we render so that when the score changes we can animate them around without DOM nodes being repositioned.
