Tulis kode Anda seperti di bawah ini:-
// CGridView column definition:
'columns'=>array(
array(
'name'=>'naziv',
'value'=>'$data->studijskiProgram->naziv',
'type'=>'text',
),
// Preparing the DataProvider in the model:
return new CActiveDataProvider(get_class($this),array(
'sort'=>array(
'multiSort'=>false,
'attributes'=>array(
'naziv'=>array(
'desc'=>'naziv desc',
),