From 2127852145a4a7316a4987de170e4497e044f296 Mon Sep 17 00:00:00 2001
From: Nathan Pietrantonio <pietrann@uci.edu>
Date: Sun, 12 May 2024 16:42:19 -0700
Subject: [PATCH] Order events ascending

---
 routes/data.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/routes/data.js b/routes/data.js
index f6d5101..3cd21ee 100644
--- a/routes/data.js
+++ b/routes/data.js
@@ -412,7 +412,7 @@ dataRouter.get('/unregistered/:volunteerId', async (req, res) => {
       FROM current_events
       LEFT JOIN event_data ON current_events.id = event_data.event_id AND event_data.volunteer_id = $1
       WHERE event_data.event_id IS NULL
-      ORDER BY current_events.date DESC;`,
+      ORDER BY current_events.date ASC;`,
       [volunteerId],
     );
     res.status(200).json(unregisteredEvents.rows);