Begin refactoring story lists to order list, remove separate rank div

This commit is contained in:
Nathan Leniz
2015-03-08 12:32:35 +09:00
parent c8a9f6f810
commit 1edc1aa3cf
3 changed files with 29 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ var R = require('ramda'),
secrets = require('../config/secrets');
exports.hotJSON = function(req, res, next) {
var story = Story.find({}).sort({'rank': -1});
var story = Story.find({}).sort({'rank': -1, 'timePosted': -1});
story.exec(function(err, stories) {
if (err) {
throw err;