v1.18.x
Julian Lam 12 years ago
parent e9a552eab4
commit f1c5233aa9

@ -95,7 +95,12 @@ var RDB = require('./redis.js'),
// Float pinned topics to the top // Float pinned topics to the top
topics = topics.sort(function(a, b) { topics = topics.sort(function(a, b) {
return b.pinned - a.pinned; if (a.pinned !== b.pinned) return b.pinned - a.pinned;
else {
console.log('here');
// Sort by datetime descending
return b.timestamp - a.timestamp;
}
}); });
callback({ callback({

Loading…
Cancel
Save