mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-12-15 06:04:17 +08:00
fix: fixed sorting of languages by percentage
This commit is contained in:
parent
ad87824f3c
commit
8a8ff5b390
@ -41,10 +41,12 @@ const renderTopLanguages = (topLangs, options = {}) => {
|
||||
}, 0);
|
||||
|
||||
// hide langs
|
||||
langs = langs.filter((lang) => {
|
||||
if (!hide_langs_below) return true;
|
||||
return (lang.size / totalSize) * 100 > hide_langs_below;
|
||||
});
|
||||
langs = langs
|
||||
.sort((a, b) => b.size - a.size)
|
||||
.filter((lang) => {
|
||||
if (!hide_langs_below) return true;
|
||||
return (lang.size / totalSize) * 100 > hide_langs_below;
|
||||
});
|
||||
|
||||
// returns theme based colors with proper overrides and defaults
|
||||
const { titleColor, textColor, bgColor } = getCardColors({
|
||||
|
Loading…
Reference in New Issue
Block a user