Sortable Header In Clistview

How to make sortable header in clistview

This is my example header

<thead class="bg-light">






I want to make id and name sortable. sortableAttributes render a seperate section for sorting.

Thanks in advance.

$dataProvider=new CActiveDataProvider('Post');

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


    'itemView'=>'_post',   // refers to the partial view named '_post'



        'create_time'=>'Post Time',




It just render seperate sort section in <ul><li>

I want to customize it inside <tr><th>