Sort tasks by done/undone first and then newest
This commit is contained in:
parent
cad4df5558
commit
b2408eef04
@ -48,6 +48,11 @@ export default class ListModel extends AbstractModel {
|
||||
return -1
|
||||
if (a.done > b.done)
|
||||
return 1
|
||||
|
||||
if (a.id > b.id)
|
||||
return -1
|
||||
if (a.id < b.id)
|
||||
return 1
|
||||
return 0
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user