Default sorting

Dear team,

is there a possibility to add default sorting to a table? And can we save a layout with defined sorting order by the user?

Hi @olesia.nefedova,
the sorting defined for a column is not currently saved to a layout, but we have a few API methods which you can use to set a default sorting. Here is a link: https://datagrok.ai/help/develop/how-to/customize-grid#ordering. I don’t think we have a method to read the sorting specified by the user yet, but both saving to layouts and reading such sorting order from the grid should be useful, @skalkin what’s your opinion on this, should we add both?

We’ve just added the UI for that: