diff options
author | mat <github@matdoes.dev> | 2022-07-01 15:52:45 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-07-01 15:52:45 -0500 |
commit | b4a1f93bbc6479982b0d16437af0f29e0a924c8d (patch) | |
tree | a409a3045d41629dde429275519a546f838e4513 | |
parent | 2e07a216c9ceda04dc6f11708f5adf0e5f4c85aa (diff) | |
download | skyblock-api-b4a1f93bbc6479982b0d16437af0f29e0a924c8d.tar.gz skyblock-api-b4a1f93bbc6479982b0d16437af0f29e0a924c8d.tar.bz2 skyblock-api-b4a1f93bbc6479982b0d16437af0f29e0a924c8d.zip |
Fix sorting
-rw-r--r-- | src/cleaners/skyblock/auctions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/auctions.ts b/src/cleaners/skyblock/auctions.ts index 81a5475..2d50111 100644 --- a/src/cleaners/skyblock/auctions.ts +++ b/src/cleaners/skyblock/auctions.ts @@ -31,7 +31,7 @@ export async function cleanAuctions(data: typedHypixelApi.SkyBlockRequestAuction } // sort by newer first - auctions.sort((a, b) => b.creationTimestamp - a.creationTimestamp) + auctions.sort((a, b) => a.creationTimestamp - b.creationTimestamp) return auctions |