Hi,
i need to do in the first time i open the screen (list of itens) show ordered by a default order.
Is there a way to do that?
Thanks
Hi,
i need to do in the first time i open the screen (list of itens) show ordered by a default order.
Is there a way to do that?
Thanks
You may try something like this when initiating a data provider:
‘sort’ => array(
‘defaultOrder’ => array(‘name’ => false),
)
Where ‘name’ => true means sort by ASC and false means sort by DESC