mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
removed parseInt from sorts
This commit is contained in:
@@ -550,7 +550,7 @@ SocketTopics.searchAndLoadTags = function(socket, data, callback) {
|
||||
tag.score = results.counts[index];
|
||||
});
|
||||
results.tagData.sort(function(a, b) {
|
||||
return parseInt(b.score, 10) - parseInt(a.score, 10);
|
||||
return b.score - a.score;
|
||||
});
|
||||
|
||||
callback(null, results.tagData);
|
||||
|
||||
Reference in New Issue
Block a user