From 92c5ff5a442e29f68095c45c9185a4f5c67dcef4 Mon Sep 17 00:00:00 2001 From: Benimautner Date: Mon, 12 Feb 2024 22:28:42 +0100 Subject: [PATCH] added proper sorting of tasks on landing page --- lib/pages/landing_page.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/landing_page.dart b/lib/pages/landing_page.dart index f21120f..a627f39 100644 --- a/lib/pages/landing_page.dart +++ b/lib/pages/landing_page.dart @@ -235,7 +235,10 @@ class LandingPageState extends State filterId = frontend_settings["filter_id_used_on_overview"]; } if(filterId != null && filterId != 0) { - return global.taskService.getAllByProject(filterId).then?>((response) => _handleTaskList(response?.body, showOnlyDueDateTasks));; + return global.taskService.getAllByProject(filterId, { + "sort_by": ["due_date", "id"], + "order_by": ["asc", "desc"], + }).then?>((response) => _handleTaskList(response?.body, showOnlyDueDateTasks));; } return global.taskService