Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Sort suggestion by creationTime to fix gallery grouping bug

Neeraj Gupta745daf39f702
diff --git a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart
index 2a6a05581f..babe818974 100644
--- a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart
+++ b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart
@@ -79,6 +79,7 @@ class _PersonClustersState extends State<PersonReviewClusterSuggestion> {
final double distance = currentSuggestion.distancePersonToCluster;
final bool usingMean = currentSuggestion.usedOnlyMeanForSuggestion;
final List<EnteFile> files = currentSuggestion.filesInCluster;
+ files.sort((a, b) => b.creationTime!.compareTo(a.creationTime!));
_peopleChangedEvent =
Bus.instance.on<PeopleChangedEvent>().listen((event) {