Order by related of fields

hi all,

my question is the seguent: how is possible to make sortable every field renderized on screen by a CGridView?this table is a result of 3tables related correctly by relations() method.

by default the field sortable are just those that belongs to the principal model.

i read many posts, but i don’t understand WHERE i can specify this sortable rule.

thanks in advance!

This wiki will help you.

http://www.yiiframework.com/wiki/281/searching-and-sorting-by-related-model-in-cgridview

Thank you!

i’m reading it!