From 619cd8ddab1f8f41740e8f3fae1697407e9bff7c Mon Sep 17 00:00:00 2001 From: Victor Winberg Date: Sun, 18 Jul 2021 09:57:54 +0200 Subject: [PATCH] Order by users by user names (#206) * Order by users by user names * Update user-model.js --- server/src/user/user-model.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/user/user-model.js b/server/src/user/user-model.js index bfa91f28..09aff1ba 100644 --- a/server/src/user/user-model.js +++ b/server/src/user/user-model.js @@ -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 };