Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add caution note in docs

Manav Rathi6dca81e2ffac
diff --git a/web/packages/new/photos/services/files.ts b/web/packages/new/photos/services/files.ts
index 1fba3c407b..240fbdfa67 100644
--- a/web/packages/new/photos/services/files.ts
+++ b/web/packages/new/photos/services/files.ts
@@ -38,7 +38,11 @@ export const setLocalFiles = async (
};
/**
- * Sort the given list of {@link EnteFile}s.
+ * Sort the given list of {@link EnteFile}s in place.
+ *
+ * Like the JavaScript Array#sort, this method modifies the {@link files}
+ * argument. It sorts {@link files} in place, and then returns a reference to
+ * the same mutated array.
*
* By default, files are sorted so that the newest one is first. The optional
* {@link sortAsc} flag can be set to `true` to sort them so that the oldest one