Reason is that you miss the "allowed filter fields" on the constructor of the model.
Add
Code: Select all
public function __construct($config = array())
{
if (empty($config['filter_fields'])) {
$config['filter_fields'] = array(
'a.hits',
'a.filename',
'a.title',
);
}
parent::__construct($config);
}
and it should work./administrator/components/com_phocadownload/models/phocadownloadstat.php
Also you could add a more logic default order to it by using
Code: Select all
parent::populateState('a.hits', 'desc');
