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

Commit e51c7e9

Browse files
- sort collection by acquisition date
1 parent 8fabbbd commit e51c7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conseilUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const getCollectionForAddress = async (address) => {
132132
...i
133133
}})
134134

135-
return collection.sort((a, b) => parseInt(b.piece) - parseInt(a.piece)) // sort descending by id – most-recently minted art first
135+
return collection.sort((a, b) => b.receivedOn.getTime() - a.receivedOn.getTime()) // sort descending by date – most-recently acquired art first
136136
}
137137

138138
const gethDaoBalanceForAddress = async (address) => {

0 commit comments

Comments
 (0)