Skip to content

Commit

Permalink
added proper sorting of tasks on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Benimautner committed Feb 12, 2024
1 parent bd1ada1 commit 92c5ff5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pages/landing_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ class LandingPageState extends State<LandingPage>
filterId = frontend_settings["filter_id_used_on_overview"];
}
if(filterId != null && filterId != 0) {
return global.taskService.getAllByProject(filterId).then<Future<void>?>((response) => _handleTaskList(response?.body, showOnlyDueDateTasks));;
return global.taskService.getAllByProject(filterId, {
"sort_by": ["due_date", "id"],
"order_by": ["asc", "desc"],
}).then<Future<void>?>((response) => _handleTaskList(response?.body, showOnlyDueDateTasks));;
}

return global.taskService
Expand Down

0 comments on commit 92c5ff5

Please sign in to comment.