Grids
I have tried altering the piece of code directly in the VIEW i.e
$model = $this->model;
$user = JFactory::getUser();
$userId = $user->get('id');
$model->setState('list.ordering', 'a.creation_date');
$model->setState('list.direction', 'desc');
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$saveOrder = $listOrder == 'a.ordering' && $listDirn != 'desc';
I have also tried changing the $saveOrder to
$saveOrder = $listOrder == 'a.creation_date' && $listDirn != 'desc';
Nothing works... I cant make the grids change order. PLease can anyone advise how they have changed the default ordering of their grids
Also, more of an aside, why do select lists, by default, show all records including unpublished ones. Surely it would be a better default not to show anything in the select list other than a.published=1