From 30fe8156fd73b2c45f4e2ed4d09339a90bf5c646 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Thu, 26 Mar 2015 20:13:24 +0000 Subject: [PATCH] Contacts: Sort list initially by Organization, then by First, Last. --- app/contacts/contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/contacts/contacts.php b/app/contacts/contacts.php index 6402c9555c..7190d6f199 100644 --- a/app/contacts/contacts.php +++ b/app/contacts/contacts.php @@ -176,7 +176,7 @@ else { $sql .= "order by ".$order_by." ".$order." "; } else { - $sql .= "order by contact_organization asc, contact_name_given asc, contact_name_family asc "; + $sql .= "order by contact_organization desc, contact_name_given asc, contact_name_family asc "; } $sql .= "limit ".$rows_per_page." offset ".$offset." "; $prep_statement = $db->prepare(check_sql($sql));