Sort score table so the ones with most kilometers end on top
This commit is contained in:
parent
bd6477e9a4
commit
1b662ed4ea
@ -96,7 +96,7 @@ let alpineState: AlpineState = {
|
||||
latestActivity: lastDate
|
||||
});
|
||||
|
||||
scoreTable.sort((a, b) => {return (a.totalKilometers ?? 0) - (b.totalKilometers ?? 0)});
|
||||
scoreTable.sort((a, b) => {return (b.totalKilometers ?? 0) - (a.totalKilometers ?? 0)});
|
||||
this.scoreTable = scoreTable;
|
||||
},
|
||||
getServerMessage(): Sykkelaksjon {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user