How to sort the data feched by findbyattributes method…pls some one help me this is really important
paste your code
Try this one:
$model = Employees::model()->findByAttributes(
array('department_id'=>1),
array('order'=>'employee_name')
);
If it solves your problem, don’t forget to mention [SOLVED] at your topic. ![]()