Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

perf: do not sort indices

thecodrr76ba8b749220
diff --git a/packages/core/database/cached-collection.js b/packages/core/database/cached-collection.js
index 990395c3d..f5c24317a 100644
--- a/packages/core/database/cached-collection.js
+++ b/packages/core/database/cached-collection.js
@@ -10,7 +10,7 @@ export default class CachedCollection {
async init() {
await this.indexer.init();
- const data = await this.indexer.readMulti(sort(this.indexer.indices).asc());
+ const data = await this.indexer.readMulti(this.indexer.indices);
this.map = new Map(data);
}