Sort labels alphabetically on tasks
This commit is contained in:
parent
fe4a8c17c8
commit
83b530b8ba
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ export default class TaskModel extends AbstractModel {
|
|||
this.labels = this.labels.map(l => {
|
||||
return new LabelModel(l)
|
||||
})
|
||||
.sort((f, s) => f.title > s.title)
|
||||
|
||||
if (this.hexColor !== '' && this.hexColor.substring(0, 1) !== '#') {
|
||||
this.hexColor = '#' + this.hexColor
|
||||
|
|
Loading…
Reference in a new issue