From ef9393873ff63ece5607556abba4a794d0445d6b Mon Sep 17 00:00:00 2001 From: Yashraj Jain Date: Wed, 9 Oct 2024 13:19:50 +0530 Subject: [PATCH 1/2] fix: trash sorting order --- mobile/lib/providers/trash.provider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/providers/trash.provider.dart b/mobile/lib/providers/trash.provider.dart index 45ab1a518583e..e7a720ae35d93 100644 --- a/mobile/lib/providers/trash.provider.dart +++ b/mobile/lib/providers/trash.provider.dart @@ -167,6 +167,6 @@ final trashedAssetsProvider = StreamProvider((ref) { .filter() .ownerIdEqualTo(user.isarId) .isTrashedEqualTo(true) - .sortByFileCreatedAt(); + .sortByIsTrashed(); return renderListGeneratorWithGroupBy(query, GroupAssetsBy.none); }); From e6e3629ef86613b37f8080e33df23cd8fb703f70 Mon Sep 17 00:00:00 2001 From: Yashraj Jain Date: Wed, 9 Oct 2024 23:48:07 +0530 Subject: [PATCH 2/2] updated after comparing with web --- mobile/lib/providers/trash.provider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/providers/trash.provider.dart b/mobile/lib/providers/trash.provider.dart index e7a720ae35d93..8bbac853c7bab 100644 --- a/mobile/lib/providers/trash.provider.dart +++ b/mobile/lib/providers/trash.provider.dart @@ -167,6 +167,6 @@ final trashedAssetsProvider = StreamProvider((ref) { .filter() .ownerIdEqualTo(user.isarId) .isTrashedEqualTo(true) - .sortByIsTrashed(); + .sortByFileCreatedAtDesc(); return renderListGeneratorWithGroupBy(query, GroupAssetsBy.none); });