bugfix: sort highscore table by score
This commit is contained in:
parent
05680286ad
commit
5c2b99a909
@ -25,6 +25,9 @@ import { useGameinfoStore } from "@/stores/GameinfoStore"
|
|||||||
|
|
||||||
const title = useGameinfoStore().gameInfo.name
|
const title = useGameinfoStore().gameInfo.name
|
||||||
const players = usePlayersStore().players
|
const players = usePlayersStore().players
|
||||||
|
players.sort((a, b) => {
|
||||||
|
return b.score - a.score
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
Loading…
Reference in New Issue
Block a user