diff --git a/lib/services/dbhelper.dart b/lib/services/dbhelper.dart index f7cc69e..8f6d534 100644 --- a/lib/services/dbhelper.dart +++ b/lib/services/dbhelper.dart @@ -20,7 +20,7 @@ class DbHelper { _isar.todos.where().doneEqualTo(false).sortByCreatedAtDesc().findAll(); static List 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));