From 28b11b7266689063c9b112fa284a4c661119b3b6 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Mon, 22 Nov 2021 15:38:20 -0700 Subject: [PATCH] Group divisions by sport_id --- database/scores/divisions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/scores/divisions.js b/database/scores/divisions.js index 80fe35e..a3cebd2 100644 --- a/database/scores/divisions.js +++ b/database/scores/divisions.js @@ -61,7 +61,8 @@ async function retrieve(sportID = undefined, gender = undefined) { else { const query = `SELECT division_id, division_name, gender, sport_id FROM scores.divisions - ORDER BY division_name, + ORDER BY sport_id, + division_name, gender;`; table = await database.executeQuery(query); }