forked from vikunja/app
Add sorting for tasks
This commit is contained in:
parent
2345a131b7
commit
b36f0215d8
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user