Gridview Header - Showing Little Icon By Default

Hello All,

In Grid View by default my records are sorted on last name . But I am not finding a way to show the little ascending symbol next to my header by default . If I click on the header it starts showing up .Could any one tell me showing it by default the icon ? Below are the pictures and code . Thanks for your help - Yii Fan

$this->widget('zii.widgets.grid.CGridView', array(

        'dataProvider' => $people,

        'id' => "peopleList",

        'template' => "{items}{pager}",

        'columns' => array(


                'name' => 'last_name',

                'type' => 'raw',

                'header' => 'Last Name',

                'htmlOptions' => array('width' => '180'),



If you specify the default sort order when configuring your data provider, the symbol will show up automatically:

    $dataProvider->sort->defaultOrder = array('last_name'=>CSort::SORT_ASC);

Thank You Keith . This helped me