π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix unnamed cluster sort issue
laurenspriem9815d1c73bd1
diff --git a/mobile/apps/photos/lib/utils/people_sort_util.dart b/mobile/apps/photos/lib/utils/people_sort_util.dartindex 7e3c46704c..9c18034e87 100644--- a/mobile/apps/photos/lib/utils/people_sort_util.dart+++ b/mobile/apps/photos/lib/utils/people_sort_util.dart@@ -49,9 +49,13 @@ void sortPeopleFaces(compareValue = b.fileCount().compareTo(a.fileCount());break;case PeopleSortKey.name:- compareValue = compareAsciiLowerCaseNatural(a.name(), b.name());- if (!config.nameSortAscending) {- compareValue = -compareValue;+ if (!aHasPerson) {+ compareValue = b.fileCount().compareTo(a.fileCount());+ } else {+ compareValue = compareAsciiLowerCaseNatural(a.name(), b.name());+ if (!config.nameSortAscending) {+ compareValue = -compareValue;+ }}break;case PeopleSortKey.lastUpdated: