Order county list alphabetically on contacts list view dropdown
authorLaury GvR <laury@gaslightmedia.com>
Tue, 17 Jan 2017 22:26:05 +0000 (17:26 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 17 Jan 2017 22:26:05 +0000 (17:26 -0500)
models/front/contacts/list.php

index 4445b80..0d563e0 100644 (file)
@@ -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;
         }