Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit fd78f2d

Browse files
authored
Merge pull request #24 from mikesizz/feature/fix-creations-ordering
Correct creations list sort order
2 parents 880fda8 + 090d62e commit fd78f2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ const getTzLedger = async (tz, res) => {
229229
return arr
230230
}))
231231

232+
validCreations = validCreations.sort((a, b) => parseInt(b.objectId) - parseInt(a.objectId))
233+
232234
var arr = []
233235
console.log([...collection, ...validCreations])
234236
var arr = [...collection, ...validCreations]

0 commit comments

Comments
 (0)