bugfix: sort highscore table by score

This commit is contained in:
Settel 2022-09-25 17:55:55 +02:00
parent 05680286ad
commit 5c2b99a909

View File

@ -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">