From 926d7938ab932cac01d7b83708e42b6342e24a3f Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 22 Jul 2021 22:00:13 +0200 Subject: [PATCH] Show labels alphabetically sorted in the overview --- src/views/labels/ListLabels.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/labels/ListLabels.vue b/src/views/labels/ListLabels.vue index 8f4f93a3..e286c952 100644 --- a/src/views/labels/ListLabels.vue +++ b/src/views/labels/ListLabels.vue @@ -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: {