Browse Source

fix(mobile): fix asset order in album from latest to oldest (#3469)

Alex 2 years ago
parent
commit
c587fb1df8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mobile/lib/shared/models/album.dart

+ 1 - 1
mobile/lib/shared/models/album.dart

@@ -71,7 +71,7 @@ class Album {
   }
 
   Stream<void> watchRenderList(GroupAssetsBy groupAssetsBy) async* {
-    final query = assets.filter().sortByFileCreatedAt();
+    final query = assets.filter().sortByFileCreatedAtDesc();
     _renderList = await RenderList.fromQuery(query, groupAssetsBy);
     yield _renderList;
     await for (final _ in query.watchLazy()) {