keep order of quotes constant in list while collecting quotes
This commit is contained in:
parent
7a9a4d5e2c
commit
96ad2f6533
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user