diff --git a/controllers/countries_controller.php b/controllers/countries_controller.php index 602fa5c0..2e58a07a 100755 --- a/controllers/countries_controller.php +++ b/controllers/countries_controller.php @@ -79,7 +79,7 @@ class CountriesController extends AppController { $countries = $this->Country->find('all', array( 'conditions' => array( 'Country.name LIKE' => '%'.$query.'%' - ),'fields' => array('Country.name') + ),'fields' => array('Country.name'), 'order' =>array('Country.name ASC') diff --git a/controllers/customers_controller.php b/controllers/customers_controller.php index 12d1d105..a1572104 100755 --- a/controllers/customers_controller.php +++ b/controllers/customers_controller.php @@ -111,7 +111,8 @@ class CustomersController extends AppController { $customers = $this->Customer->find('all', array( 'conditions' => array( 'Customer.name LIKE' => '%'.$query.'%' - ),'fields' => array('Customer.name') + ),'fields' => array('Customer.name'), + 'order' => array('Customer.name ASC')