fix: ordered contributors by contribution count

Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
Corentin Thomasset 2020-06-11 13:25:57 +02:00 committed by Corentin THOMASSET
parent f9f80b4e3a
commit 26bda68f41
2 changed files with 4 additions and 1 deletions

View file

@ -36,7 +36,7 @@
axios
.get(url)
.then(({data}) => {
this.contributors = data.sort((a, b) => a.contributions - b.contributions)
this.contributors = data.sort((a, b) => b.contributions - a.contributions)
this.loading = false
})
.catch(() => this.hasError = true)