dataGrid default sort in Jmix 2?

In Jmix 1.5 the application would save the user’s last choice of sorting for a table/list screen. Now in Jmix 2 this is not saved. I have a number of list views where I need the most recent records displayed first. Currently I have to click the sort for that column twice every time the view is loaded.

Is there a way to define a default sort (column & direction) for a dataGrid?

Hi!

The ViewSettingFacet is responsible for saving sorting. It will be added soon with 2.1 Release.

Regards,
Dmitriy