Skip to content

Commit 44ca258

Browse files
committed
restore original order of db entries
1 parent ac96931 commit 44ca258

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/builder/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ export class Database extends Hookable {
4747

4848
async toJSON() {
4949
const omit = (key, val) => this.omitKeys.includes(key) ? undefined : val
50-
const sort = (a, b) => a.path.localeCompare(b.path)
51-
const data = (await this.db.find({}).toArray()).sort(sort)
50+
const data = await this.db.find({}).toArray()
5251

5352
return JSON.stringify(data, omit)
5453
}

0 commit comments

Comments
 (0)