From 07c4d9b6221987da465806de8f4be2cfebf52ba7 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Sun, 21 Nov 2021 15:53:58 -0700 Subject: [PATCH] Retrieve seasons in descending order --- database/scores/seasons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/scores/seasons.js b/database/scores/seasons.js index 381d064..f787ade 100644 --- a/database/scores/seasons.js +++ b/database/scores/seasons.js @@ -32,7 +32,7 @@ async function remove(id) { async function retrieveAll() { const query = `SELECT * FROM scores.seasons - ORDER BY school_year;`; + ORDER BY school_year DESC;`; const table = await database.executeQuery(query); const seasonsList = [];