Node.js based forum software built for the modern web
Fix tests
psychobunnyc133efa25805
diff --git a/src/topics/popular.js b/src/topics/popular.jsindex 7d756a1548..5b5d3f9402 100644--- a/src/topics/popular.js+++ b/src/topics/popular.js@@ -60,7 +60,7 @@ module.exports = function (Topics) {function sortTiedTopicsByViews(topics, next) {topics.sort(function (a, b) {- return parseInt(a.postcount) !== parseInt(b.postcount) ? 0 : parseInt(b.viewcount, 10) - parseInt(a.viewcount, 10);+ return parseInt(a.postcount, 10) !== parseInt(b.postcount, 10) ? 0 : parseInt(b.viewcount, 10) - parseInt(a.viewcount, 10);});next(null, topics);