aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 3f2424017a..0f4961d6e2 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -886,7 +886,8 @@ function username_search($search_match, $is_inline_review = 0, $default_list = "
$sql = "SELECT username
FROM " . USERS_TABLE . "
- WHERE username LIKE '$username_search'";
+ WHERE username LIKE '$username_search'
+ ORDER BY username";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't obtain search results", "", __LINE__, __FILE__, $sql);