Also sort by due date by default

to comply with Tasks v0.9.8 and older
This commit is contained in:
Raimund Schlüßler 2019-04-22 14:49:14 +02:00
parent fa6b887e51
commit a7df0b425e
No known key found for this signature in database
GPG Key ID: 036FA7EB1A599178
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export default {
id: 'default',
icon: 'icon-list',
text: t('tasks', 'Default'),
hint: t('tasks', 'Sort by completed state, priority, start date and summary.')
hint: t('tasks', 'Sort by completed state, due date, priority, start date and summary.')
},
{
id: 'due',

View File

@ -153,7 +153,7 @@ function sort(tasks, sortOrder, sortDirection) {
break
}
default:
comparators = [sortByCompleted, sortByPriority, sortByStart, sortAlphabetically]
comparators = [sortByCompleted, sortByDue, sortByPriority, sortByStart, sortAlphabetically]
}
var sortedTasks = tasks.sort((taskA, taskB) => {
var compIndex = 0