Reverse the leaderboard

This commit is contained in:
Skylar Grant 2023-01-25 01:24:31 -05:00
parent e65ca2d88f
commit 1184ca20a5

View File

@ -183,7 +183,7 @@ const functions = {
const leaderboard = res.data;
let replyString = 'Current Tree Height: ' + treeHeight + 'ft\n\n';
leaderboard.forEach(treeRanking => {
leaderboard.reverse().forEach(treeRanking => {
let difference = parseFloat(treeRanking.treeHeight).toFixed(1) - treeHeight;
let decimal = (treeRanking.treeHeight % 1).toFixed(1);
let growthIndicator = "";