diff --git a/api/lottery.js b/api/lottery.js index bdd9032..62ee497 100644 --- a/api/lottery.js +++ b/api/lottery.js @@ -120,7 +120,7 @@ const byName = (req, res) => { .then(highscore => res.send({ message: `Lottery winnings for name: ${ name }.`, name: highscore.name, - highscore: highscore.wins + highscore: sortNewestFirst(highscore.wins) })) }