Scopes, Search And Default Ordering

Hi Everyone,

Just wondering how to get around this problem…

I have a scope defined in my model:



     'order'=>'DATE_COMPLETE DESC',


and in the search function for the model, a default order:

public function search() 



	$sort = new CSort;

	$sort->defaultOrder = 't.UID ASC';

	$sort->attributes = array(




		"DATE_COMPLETE" => array (

			"asc" => "t.DATE_COMPLETE",

			"desc" => "t.DATE_COMPLETE desc",





But when I open the grid for the completeAll() scope, the result is always sorted by UID.

How can I get the default order to be what’s defined in the scope?