mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: order of the matches is correct again
This commit is contained in:
parent
4f13d8400e
commit
7e93dcd311
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class SummonerController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sort 10 matches */
|
/* 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.matchesDetails = matchesDetails
|
||||||
finalJSON.allMatches = matches
|
finalJSON.allMatches = matches
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue