diff --git a/app/javascript/dashboard/routes/dashboard/conversation/labels/AddLabelToConversation.vue b/app/javascript/dashboard/routes/dashboard/conversation/labels/AddLabelToConversation.vue index d83bf6870..5c897b372 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/labels/AddLabelToConversation.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/labels/AddLabelToConversation.vue @@ -87,14 +87,18 @@ export default { }, computed: { activeList() { - return this.accountLabels.filter(accountLabel => - this.savedLabels.includes(accountLabel.title) - ); + return this.accountLabels + .filter(accountLabel => this.savedLabels.includes(accountLabel.title)) + .sort((a, b) => { + return a.title.localeCompare(b.title); + }); }, inactiveList() { - return this.accountLabels.filter( - accountLabel => !this.savedLabels.includes(accountLabel.title) - ); + return this.accountLabels + .filter(accountLabel => !this.savedLabels.includes(accountLabel.title)) + .sort((a, b) => { + return a.title.localeCompare(b.title); + }); }, }, methods: {