Hello, I want to sort my CGridView results by name (not id). Unfortunately, when I change the model’s search function to include
$criteria->order = "name DESC";
when I try to sort the grid by clicking the name attribute, it doesn’t do anything and I can only sort the other attributes. Makes sense since it keeps returning the same dataprovider with that name sort. Anyways, I was just wondering what the cleanest/easiest way is to be able to sort all columns in the grid while still having the initial sort be by name instead of id? Thanks.