CListView Widget sortableAttribute issue


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

  'dataProvider'=>$dataProvider,

  'itemView'=>'_view',

  'sortableAttributes'  =>array(

    'update_time',

    'title',

  ),

)); ?>

title works, but updte_time doesn’t. I can notice the url’s get param changed when click ‘update_time’ between ‘update_time’ and ‘update_time desc’, but don’t know why the sort doesn’t changed.

Any chance you’ve got an order condition already applied in your dataProvider? If so, it won’t override that. You’d have to use the default sort order option for the initial sorting.

yeah, I do so, thank you for your time.