fix: sort indices before readMulti

This commit is contained in:
thecodrr
2020-03-09 09:35:27 +05:00
parent fdfd920074
commit 746613420e

View File

@@ -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);
} }