Add sorting for tasks
continuous-integration/drone/pr Build was killed Details

This commit is contained in:
kolaente 2020-01-13 23:14:51 +01:00
parent 2345a131b7
commit b36f0215d8
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ class _ListPageState extends State<ListPage> {
_loading = false;
_list = list;
// Load tasks
VikunjaGlobal.of(context).taskService.getAll(list.id).then((tasks) {
VikunjaGlobal.of(context).taskService.getAll(
list.id, {"sort_by": "done", "order_by": "asc"}).then((tasks) {
setState(() {
_tasks = tasks;
});