When you configure a list for the Creatio mobile client using the mobile wizard, by default the list shows in database order which isn’t too helpful. However, you can specify a sort for the list in code. The first thing you’ll need to do is add a module for the entity in the Mobile application manifest.
With that module created, you’ll simply need to add the following code into the module. Note, the module schema doesn’t need a declare or any other code. Just the code below is all that is needed in the module schema. In this scenario, we have a list of an entity named UsrNote and we’ll be sorting the list by a column named UsrDate in descending order.
Terrasoft.sdk.GridPage.setOrderByColumns("UsrNote", [{
column: "UsrDate",
orderType: Terrasoft.OrderTypes.DESC
}]);
This code configures the GridPage (or list) for the UsrNote entity to sort by the UsrDate column in descending order.




How to set a default sort order in a Section page?
Hello,
Is sorting not gonna work for section list and embedded detail in mobile?