Sort tasks by done/undone first and then newest
This commit is contained in:
parent
cad4df5558
commit
b2408eef04
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ export default class ListModel extends AbstractModel {
|
||||||
return -1
|
return -1
|
||||||
if (a.done > b.done)
|
if (a.done > b.done)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
if (a.id > b.id)
|
||||||
|
return -1
|
||||||
|
if (a.id < b.id)
|
||||||
|
return 1
|
||||||
return 0
|
return 0
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue