Sort labels alphabetically on tasks

This commit is contained in:
kolaente 2021-07-22 22:05:34 +02:00
parent fe4a8c17c8
commit 83b530b8ba
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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