Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Fix ordering of files in sub-gallery in link-in-app gallery

ashilkn4324433b3e93
diff --git a/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart b/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart
index 30b18fc5ae..9cb3cf66cd 100644
--- a/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart
+++ b/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart
@@ -55,7 +55,7 @@ class _SharedPublicCollectionPageState
final gallery = Gallery(
asyncLoader: (creationStartTime, creationEndTime, {limit, asc}) async {
widget.files!.sort(
- (a, b) => a.creationTime!.compareTo(b.creationTime!),
+ (a, b) => b.creationTime!.compareTo(a.creationTime!),
);
return FileLoadResult(widget.files!, false);