Enhancement: Sort labels (#1995)
This commit is contained in:
parent
a0cd1f8bcc
commit
ff69ef7317
1 changed files with 10 additions and 6 deletions
|
@ -87,14 +87,18 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
activeList() {
|
activeList() {
|
||||||
return this.accountLabels.filter(accountLabel =>
|
return this.accountLabels
|
||||||
this.savedLabels.includes(accountLabel.title)
|
.filter(accountLabel => this.savedLabels.includes(accountLabel.title))
|
||||||
);
|
.sort((a, b) => {
|
||||||
|
return a.title.localeCompare(b.title);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
inactiveList() {
|
inactiveList() {
|
||||||
return this.accountLabels.filter(
|
return this.accountLabels
|
||||||
accountLabel => !this.savedLabels.includes(accountLabel.title)
|
.filter(accountLabel => !this.savedLabels.includes(accountLabel.title))
|
||||||
);
|
.sort((a, b) => {
|
||||||
|
return a.title.localeCompare(b.title);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue