Change Order of Data : Pages Titles plugin


I have disabled some columns for displaying in the Pages Titles widget (only the titles and the hits are remaining), but datas are still ordered by “unique visitors numbers” (wich isn’t diplayed).

How could I do to get this widget ordered by hits number ?

Thank you for your help

How did you disable these columns?

In the Controller.php you can do

$view->setSortedColumn( 'nb_visits', 'desc' );

Thank you very much, it works !

I have disabled columns by using

$view->setColumnsToDisplay( array('label','nb_hits') );