Fixed sorting tasks on empty lists
All checks were successful
the build was successful

This commit is contained in:
kolaente 2018-12-23 18:49:28 +01:00
parent baa61386e5
commit 473fca4c85
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -460,6 +460,9 @@
return task
},
sortTasks(tasks) {
if (tasks === null) {
return tasks
}
return tasks.sort(function(a,b) {
if (a.done < b.done)
return -1