Data table ui sort option

Hi
How to sort a data table ui component based on one of the fields before loading and reloading.
how to do it using the codeless blocks.

example i have a data table component displaying a table data based on where conditions, but i dont know where to mention the default sorting field option.

Kindly advise
regards

Kindly advise

Hi @dbasilapp

You can use the “On Records Request” for the component with the following logic, if there is no SortBy value you specify a default one