Also sort by due date by default
to comply with Tasks v0.9.8 and older
This commit is contained in:
parent
fa6b887e51
commit
a7df0b425e
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue