Can't sort in detail table

Hi,
I have a master-detail edit screen. I found detail table doesn’t has sort capacity despite I put the sorttable to true for this detail table. There’s no up/down on any fields of this table. I try to put sorttable in xml file but CUBA studio remove this property automatically.

<table id="ipdetailTable"
                       editable="true"
                       height="280px"
                       sortable="true"      ---This was removed by studio automatically.
                       multiselect="true"
                       width="100%">
public void init(Map<String, Object> params) {
        ipdetailTable.setSortable(true);  --- This doesn't take effect.

Thank you.

Hi,

The sorting functionality is disabled in case the Collection type attribute is set to Set/Collection in the Entity Designer.

image

image

Regards,
Gleb

Yes. You’re right. The collection type is ‘Set’. How can I enable the sorting functionality for this case? Thank you very much.

Switch the collection type to List.

Thank you very much. It works well.