联系人按照a-z排序
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user