From 26bda68f41319a4f320708e8dab2294edee287a3 Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Thu, 11 Jun 2020 13:25:57 +0200 Subject: [PATCH] fix: ordered contributors by contribution count Signed-off-by: Corentin Thomasset --- CHANGELOG.md | 3 +++ src/components/GithubContributors.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89152688..3482c59f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Next +- [fix] [GithubContributors] ordered contributors by contribution count + ## 1.2.1 - [fix] [UuidGenerator] added quantity validation rules - [refactor] better isInt checker diff --git a/src/components/GithubContributors.vue b/src/components/GithubContributors.vue index c6648070..84a9e291 100644 --- a/src/components/GithubContributors.vue +++ b/src/components/GithubContributors.vue @@ -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)