Skip to content

Commit

Permalink
fix: sort dropdown of parent category options
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jun 13, 2021
1 parent 523bb28 commit d401d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CategoryEditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit d401d1d

Please sign in to comment.