refactor(client): ScoreScreen component

Sort messages array
pull/11/head
sundowndev 2019-10-30 15:16:42 +01:00
parent b4454382ee
commit 22794f5f9f
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ export default Vue.extend({
return text[0] !== undefined ? text[0].msg : '';
},
},
created() {
this.messages.sort((a, b) => b.min - a.min);
},
});
</script>