fixed small sorting issue
This commit is contained in:
@@ -20,7 +20,7 @@ class DbHelper {
|
||||
_isar.todos.where().doneEqualTo(false).sortByCreatedAtDesc().findAll();
|
||||
|
||||
static List<Todo> fetchAllTodos() =>
|
||||
_isar.todos.where().sortByDone().thenByCreatedAt().findAll();
|
||||
_isar.todos.where().sortByDone().thenByCreatedAtDesc().findAll();
|
||||
|
||||
static void addOrUpdateTodo(Todo todo) =>
|
||||
_isar.write((isar) => isar.todos.put(todo));
|
||||
|
||||
Reference in New Issue
Block a user