This commit is contained in:
MrOtherGuy 2020-06-05 09:40:14 +03:00
parent 3a5891fdfe
commit e40da9c14e

View file

@ -133,12 +133,12 @@ function createCategories(){
ret[++i]=item;
ns[i]=0;
}else{
ns[i] += (item === "legacy") ? 0 : 1;
ns[i] += (item === "legacy" ? 0 : 1);
}
}
let map = ret.map((a,i)=>({name:a,value:ns[i]}))
return map.sort((a,b)=>(:a.value > b.value?-1:a.value < b.value ? 1:0))
return map.sort((a,b)=>(a.value > b.value?-1:a.value < b.value ? 1:0))
})();
for(let cat of CAT_NAMES){