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); }