Skip to content

Commit

Permalink
Order by users by user names (#206)
Browse files Browse the repository at this point in the history
* Order by users by user names

* Update user-model.js
  • Loading branch information
VictorWinberg authored Jul 18, 2021
1 parent a6125c8 commit 619cd8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/user/user-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module.exports = db => ({
SELECT * FROM users
JOIN qrshards_count USING (id)
JOIN achievements_count USING (id)
ORDER BY name, username, users.id
`;
const { rows, err } = await db.query(sql);
return { users: rows, err };
Expand Down

0 comments on commit 619cd8d

Please sign in to comment.