commit | bcc4f6ef3c343416477fa969ea7c7ead82542f0e | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Mon Dec 12 00:05:29 2022 +0100 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Mon Dec 12 00:05:29 2022 +0100 |
tree | 66ef74c4b193a865458acc0f6635f361ce429a6c | |
parent | 239ce2cdbcb53d5c58d965fee951b8f2126d95fc [diff] |
Order users by name in autocomplete Change-Id: Iaccbf22d17d4d8483230637709791f7eb71845c4
diff --git a/php/utils.php b/php/utils.php index 9598a27..57746d2 100644 --- a/php/utils.php +++ b/php/utils.php
@@ -109,6 +109,7 @@ // Prepare the query $query = "SELECT * FROM $usersdb"; if ($id > 0) $query .= " WHERE id=".(int)$id; + $query .= " ORDER BY nom"; // Fetch the information of the user if ($result = query($query)) {