diff options
-rw-r--r-- | src/cleaners/skyblock/auctions.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/auctions.ts b/src/cleaners/skyblock/auctions.ts index 7812ce6..81a5475 100644 --- a/src/cleaners/skyblock/auctions.ts +++ b/src/cleaners/skyblock/auctions.ts @@ -30,6 +30,9 @@ export async function cleanAuctions(data: typedHypixelApi.SkyBlockRequestAuction }) } + // sort by newer first + auctions.sort((a, b) => b.creationTimestamp - a.creationTimestamp) + return auctions }
\ No newline at end of file |