Sorting is hard

This commit is contained in:
Kasper Rynning-Tønnesen
2020-01-21 10:12:05 +01:00
parent 13deb55e35
commit 18ff1b41fb

View File

@@ -16,7 +16,7 @@ export default {
let _response = await fetch("/api/highscore/statistics");
let response = await _response.json();
response.sort((a, b) => {
return a.wins.length > b.wins.length ? 1 : -1;
return a.wins.length > b.wins.length ? -1 : 1;
});
this.highscore = response;
}