I am using the below code and would like my results to appear alphabetically that is A-Z
$list=CHtml::listData(City::model()->findAll(),'city_id','city_name');
echo $form->dropDownList($model,'city', $list,array('empty'=>'Please Select'));
How will I get them so?
in the database they are arranged in any order