ui: Sort ranking ...
This commit is contained in:
parent
986fbb8f74
commit
864f78e8fa
@ -15,6 +15,7 @@ function createTeamsStore() {
|
|||||||
teams[tid].id = Number(tid);
|
teams[tid].id = Number(tid);
|
||||||
rank.push(teams[tid]);
|
rank.push(teams[tid]);
|
||||||
}
|
}
|
||||||
|
rank.sort((a, b) => (a.rank > b.rank ? 1 : (a.rank == b.rank ? 0 : -1)));
|
||||||
|
|
||||||
update((t) => (Object.assign(t, {teams, teams_count, rank})));
|
update((t) => (Object.assign(t, {teams, teams_count, rank})));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user