From 8b1992ed2f601fdf30c538b1932ff50e214f20e1 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Thu, 26 Mar 2015 19:51:53 +0000 Subject: [PATCH] User Edit: Sort Contact select options a little better. --- core/users/usersupdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/users/usersupdate.php b/core/users/usersupdate.php index b050414be7..dd9dd17dd2 100644 --- a/core/users/usersupdate.php +++ b/core/users/usersupdate.php @@ -532,7 +532,7 @@ else { echo " \n"; $sql = " select contact_uuid, contact_organization, contact_name_given, contact_name_family from v_contacts "; $sql .= " where domain_uuid = '".$_SESSION['domain_uuid']."' "; - $sql .= " order by contact_organization asc "; + $sql .= " order by contact_organization desc, contact_name_family asc, contact_name_given asc "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED);