Composition table sorting not working (Cuba-Platform 7.1.1)

I am using latest version of Cuba Studio (v12.1) and the latest version of Cuba-platform (v7.1.1).

I am not able to sort a table whose dataContainer is bound to composition entities of the Instance entity.

In Entity definition I have specified Collection Type as “List” and am using the following code to sort in onAfterShow event of screen :

dataItemsTable.sort(“dataItemType.sortOrder”, Table.SortDirection.ASCENDING);

The field I am sorting on is not a local field of the composition entity.

Also, are we now able to sort by multiple fields ? Has this been improved in this version of Cuba

Hello @robert.gilbert

Could you share a sample project? I’m not sure that understand you correctly, but it seems that you’re talking about sorting by list property. In this case sorting cannot be performed.

Regards