From: Laury GvR Date: Tue, 17 Jan 2017 22:26:05 +0000 (-0500) Subject: Order county list alphabetically on contacts list view dropdown X-Git-Tag: v1.0.19^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=42036e165992e385acbee8cd67d7cd5c976bc2be;p=WP-Plugins%2Fglm-member-db-contacts.git Order county list alphabetically on contacts list view dropdown --- 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; }