Order this getList by city name.
$view = 'frontAdd';
// populate cities dropdown
$cityData = new GlmDataCities( $this->wpdb, $this->config );
- $cityVals = $cityData->getList();
+ $cityVals = $cityData->getList( null, 'name' );
foreach ( $cityVals as $city ) {
$cities[$city['id']] = $city['name'];
}
// get list cities to search by
require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php';
$cities = new GlmDataCities($this->wpdb, $this->config);
- $cityData = $cities->getList();
+ $cityData = $cities->getList( null, 'name' );
// If there's a pageslug as attribute then update the pageSlug
if ( isset ( $actionData['request']['pageslug'] ) ) {