diff --git a/server/app/Controllers/Http/SummonerController.js b/server/app/Controllers/Http/SummonerController.js index facc907..d0b4536 100644 --- a/server/app/Controllers/Http/SummonerController.js +++ b/server/app/Controllers/Http/SummonerController.js @@ -117,7 +117,7 @@ class SummonerController { } /* Sort 10 matches */ - matchesDetails.sort((a, b) => (a.gameCreation < b.gameCreation) ? -1 : 1) + matchesDetails.sort((a, b) => (a.date < b.date) ? 1 : -1) finalJSON.matchesDetails = matchesDetails finalJSON.allMatches = matches