Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Order events by day
  • Loading branch information
regalijan committed Mar 2, 2024
1 parent 4ad1e67 commit 88b256c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/events-team.tsx
Expand Up @@ -42,7 +42,7 @@ export async function loader({ context }: { context: RequestContext }) {

const now = new Date();
const monthEventList = await context.env.D1.prepare(
"SELECT answer, approved, created_by, day, details, id, month, pending, reached_minimum_player_count, type, year FROM events WHERE month = ? AND year = ?;",
"SELECT answer, approved, created_by, day, details, id, month, pending, reached_minimum_player_count, type, year FROM events WHERE month = ? AND year = ? ORDER BY day ASC;",
)
.bind(now.getUTCMonth() + 1, now.getUTCFullYear())
.all();
Expand Down

0 comments on commit 88b256c

Please sign in to comment.