Skip to content

Commit

Permalink
Sort by ascending order for the queues instead of descending
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying committed Mar 20, 2024
1 parent e2d2b2b commit 6dda676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Routes/staff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ router.get(
const bots: delBot[] = await global.db
.collection<delBot>("bots")
.find()
.sort({ "date.submitted": -1 })
.sort({ "date.submitted": 1 })
.allowDiskUse()
.toArray();

Expand Down Expand Up @@ -109,7 +109,7 @@ router.get(
const servers: delServer[] = await global.db
.collection<delServer>("servers")
.find()
.sort({ "date.submitted": -1 })
.sort({ "date.submitted": 1 })
.allowDiskUse()
.toArray();

Expand All @@ -134,7 +134,7 @@ router.get(
const bots: delBot[] = await global.db
.collection<delBot>("bots")
.find()
.sort({ "date.submitted": -1 })
.sort({ "date.submitted": 1 })
.allowDiskUse()
.toArray();

Expand Down

0 comments on commit 6dda676

Please sign in to comment.