mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix: sort indices before readMulti
This commit is contained in:
@@ -10,7 +10,7 @@ export default class CachedCollection {
|
|||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
await this.indexer.init();
|
await this.indexer.init();
|
||||||
const data = await this.indexer.readMulti(this.indexer.indices);
|
const data = await this.indexer.readMulti(sort(this.indexer.indices).asc());
|
||||||
this.map = new Map(data);
|
this.map = new Map(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user