Node.js based forum software built for the modern web
sort tags by score
Barış Soner Uşaklıb9d4b02780f5
diff --git a/src/topics/tags.js b/src/topics/tags.jsindex 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;+ });}});