keep order of quotes constant in list while collecting quotes

This commit is contained in:
Settel 2021-12-02 19:06:26 +01:00
parent 7a9a4d5e2c
commit 96ad2f6533

View File

@ -19,7 +19,11 @@ export default {
}, },
computed: { computed: {
quotes() { quotes() {
return this.$store.state.myQuotes.quotes var quotes = [...this.$store.state.myQuotes.quotes]
quotes.sort((a, b) => {
return a.id.localeCompare(b.id)
})
return quotes
}, },
}, },
created() { created() {