Tweaked ladder sorting

This commit is contained in:
2019-06-23 23:38:11 +10:00
parent d4da2b6d09
commit 2e6dc30117
+1 -1
View File
@@ -529,7 +529,7 @@ const runLadderTick = (connection) => {
if (err) throw err;
//get the profiles ordered by weight descending
let query = 'SELECT id FROM profiles ORDER BY ladderRankWeight DESC;';
let query = 'SELECT id FROM profiles ORDER BY ladderRankWeight DESC, soldiers DESC, recruits DESC, gold DESC;';
connection.query(query, (err, results) => {
if (err) throw err;