From 7fdc03e79f07678faee209fd41b1657a53f0f8e3 Mon Sep 17 00:00:00 2001 From: SomnusVeritas Date: Wed, 8 Nov 2023 13:56:41 +0100 Subject: [PATCH] fixed small sorting issue --- lib/services/dbhelper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));