yiisoft/yii — pull request #1408 by creocoder (2012-09-14 23:55:04+00:00)
Title: Allow CDataProvider to use custom pagination and sorter.

For example:

```
return new CActiveDataProvider(__CLASS__,array(
'criteria'=>$criteria,
'sort'=>array(
'class'=>'MySorter',
'attributes'=>array(
'weight'=>array(
'asc'=>'language.weight, t.weight, translations.name',
'desc'=>'language.weight, t.weight DESC, translations.name DESC',
),
'search_name'=>array(
'asc'=>'language.weight, translations.name',
'desc'=>'language.weight, translations.name DESC',
),
'*',
),
'defaultOrder'=>array('weight'=>CSort::SORT_ASC),
),
'pagination'=>array(
'class'=>'MyPagination',
),
));
```