Add sorting for tasks

This commit is contained in:
kolaente 2020-01-13 23:14:51 +01:00
parent 2345a131b7
commit b36f0215d8
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -96,7 +96,8 @@ class _ListPageState extends State<ListPage> {
_loading = false; _loading = false;
_list = list; _list = list;
// Load tasks // 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(() { setState(() {
_tasks = tasks; _tasks = tasks;
}); });