diff --git a/src/models/task.js b/src/models/task.js index 12bb12e3..5a19df9c 100644 --- a/src/models/task.js +++ b/src/models/task.js @@ -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