Sort tasks on start page by due date desc and id desc
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-01-31 11:09:45 +01:00
parent 309f75b19d
commit 5f0b5a0945
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@
},
methods: {
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) {
params.startdate = Math.round(+ this.startDate / 1000)
params.enddate = Math.round(+ this.endDate / 1000)