diff --git a/src/topics/tags.js b/src/topics/tags.js index f936d7da4a..4561c950fa 100644 --- a/src/topics/tags.js +++ b/src/topics/tags.js @@ -253,6 +253,9 @@ module.exports = function (Topics) { topicTags.forEach(function (tags, index) { if (Array.isArray(tags)) { topicTags[index] = tags.map(function (tag) { return tagData[tag]; }); + topicTags[index].sort(function (tag1, tag2) { + return tag2.score - tag1.score; + }); } });