Sort tasks on start page by due date desc and id desc

This commit is contained in:
kolaente 2020-01-31 11:09:45 +01:00
parent 309f75b19d
commit 5f0b5a0945
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -62,7 +62,7 @@
}, },
methods: { methods: {
loadPendingTasks() { loadPendingTasks() {
let params = {sort_by: 'due_date_unix', order_by: 'desc'} let params = {sort_by: ['due_date_unix', 'id'], order_by: ['desc', 'desc']}
if (!this.showAll) { if (!this.showAll) {
params.startdate = Math.round(+ this.startDate / 1000) params.startdate = Math.round(+ this.startDate / 1000)
params.enddate = Math.round(+ this.endDate / 1000) params.enddate = Math.round(+ this.endDate / 1000)