diff --git a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart index 2a6a05581f..d7729351b4 100644 --- a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart +++ b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart @@ -94,10 +94,14 @@ class _PersonClustersState extends State { return InkWell( onTap: () { + final List sortedFiles = + List.from(currentSuggestion.filesInCluster); + sortedFiles + .sort((a, b) => b.creationTime!.compareTo(a.creationTime!)); Navigator.of(context).push( MaterialPageRoute( builder: (context) => ClusterPage( - files, + sortedFiles, personID: widget.person, clusterID: clusterID, ), @@ -215,9 +219,7 @@ class _PersonClustersState extends State { start: 4, ), ), - const SizedBox( - height: 24.0, - ), + const SizedBox(height: 24.0), Text( "${files.length} photos", style: getEnteTextTheme(context).body,