From d401d1db50460059851ddedfbf02de0eee8eed30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Sun, 13 Jun 2021 19:34:25 +0200 Subject: [PATCH] fix: sort dropdown of parent category options --- src/components/CategoryEditModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CategoryEditModal.vue b/src/components/CategoryEditModal.vue index 1739f506..ec808302 100644 --- a/src/components/CategoryEditModal.vue +++ b/src/components/CategoryEditModal.vue @@ -70,7 +70,7 @@ export default { const entries = categories.map(c => { return { text: c.join('->'), value: c }; }); - return [{ value: [], text: 'None' }].concat(entries); + return [{ value: [], text: 'None' }].concat(_.sortBy(entries, 'text')); }, allRuleTypes: function () { return [