From 18ff1b41fb570cae35313e315fa1aaaba42df221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 21 Jan 2020 10:12:05 +0100 Subject: [PATCH] Sorting is hard --- src/ui/Highscore.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Highscore.vue b/src/ui/Highscore.vue index 8dfb6e4..d39ffe8 100644 --- a/src/ui/Highscore.vue +++ b/src/ui/Highscore.vue @@ -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; }