From 42036e165992e385acbee8cd67d7cd5c976bc2be Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 17 Jan 2017 17:26:05 -0500 Subject: [PATCH] Order county list alphabetically on contacts list view dropdown --- models/front/contacts/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/front/contacts/list.php b/models/front/contacts/list.php index 4445b80..0d563e0 100644 --- a/models/front/contacts/list.php +++ b/models/front/contacts/list.php @@ -352,7 +352,7 @@ class GlmMembersFront_contacts_list extends GlmDataContacts } // Get a list of counties - $countyList = $this->wpdb->get_col("SELECT DISTINCT county FROM ".GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX . "contacts WHERE active = true;"); + $countyList = $this->wpdb->get_col("SELECT DISTINCT county FROM ".GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX . "contacts WHERE active = true ORDER BY county ASC;"); if ($countyList[0]) { $haveCounties = true; } -- 2.17.1