Skip to content

Commit

Permalink
Sort the events by DESCENDING DATE, not ASCENDING
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Dec 19, 2024
1 parent 5cf3b39 commit 52b82f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class EventCommand(val loritta: LorittaBot) : SlashCommandDeclarationWrapper {
.filter {
it.createEventTitle(context.i18nContext).startsWith(context.event.focusedOption.value, true)
}
.sortedBy { it.startsAt }
.sortedByDescending { it.startsAt }
.take(25)

reactionEvents.associate {
Expand Down Expand Up @@ -662,7 +662,7 @@ class EventCommand(val loritta: LorittaBot) : SlashCommandDeclarationWrapper {
.filter {
it.createEventTitle(context.i18nContext).startsWith(context.event.focusedOption.value, true)
}
.sortedBy { it.startsAt }
.sortedByDescending { it.startsAt }
.take(25)

reactionEvents.associate {
Expand Down

0 comments on commit 52b82f0

Please sign in to comment.