Skip to content

Node.js based forum software built for the modern web

fix: node12 tests

Barış Soner Uşaklı8775e7e652a5
diff --git a/src/topics/tags.js b/src/topics/tags.js
index 2be85a2c73..29d8d047d6 100644
--- a/src/topics/tags.js
+++ b/src/topics/tags.js
@@ -424,9 +424,7 @@ module.exports = function (Topics) {
}
}
- matches = matches.sort(function (a, b) {
- return a > b;
- });
+ matches.sort();
next(null, { matches: matches });
},
], callback);