Skip to content

armgit / ente

Public Imported from GitHub
0

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

Sort

Manav Rathi86bd0984061c
diff --git a/web/packages/new/photos/services/dedup.ts b/web/packages/new/photos/services/dedup.ts
index 4085da9d79..3c9998ec91 100644
--- a/web/packages/new/photos/services/dedup.ts
+++ b/web/packages/new/photos/services/dedup.ts
@@ -138,6 +138,10 @@ export const deduceDuplicates = async () => {
.filter((item) => !!item);
if (items.length < 2) continue;
+ // Within each duplicate group, keep the files sorted by collection name
+ // so that it is easier to scan them at glance.
+ items.sort((a, b) => a.collectionName.localeCompare(b.collectionName));
+
duplicateGroups.push({
id: newID("dg_"),
items,