From 3eb4bfcd5d1825c6601f095f1f42e5b5f3c79e89 Mon Sep 17 00:00:00 2001 From: Seven <1530011482@qq.com> Date: Thu, 24 Sep 2026 10:45:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E6=8C=89=E7=85=A7a-?= =?UTF-8?q?z=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/user.js b/routes/user.js index 6bff2e3..2413462 100644 --- a/routes/user.js +++ b/routes/user.js @@ -30,7 +30,8 @@ router.get( FROM chat_mysql.contacts c JOIN chat_mysql.users u ON c.contact_name = u.username - WHERE c.user_name = ?; + WHERE c.user_name = ? + ORDER BY contact_name ASC;; `; db.query(sql, [req.user.username], (error, results) => { if (error) {