Show labels alphabetically sorted in the overview

This commit is contained in:
kolaente 2021-07-22 22:00:13 +02:00
parent cf25e96c50
commit 926d7938ab
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -132,7 +132,7 @@ export default {
},
computed: mapState({
userInfo: state => state.auth.info,
labels: state => state.labels.labels,
labels: state => Object.values(state.labels.labels).sort((f, s) => f.title > s.title), // Alphabetically sort the labels
loading: state => state[LOADING] && state[LOADING_MODULE] === 'labels',
}),
methods: {