Table with KeyValueCollection not sorted

Hi,

We have one table backed by KeyValueCollection with a loader and properties defined. One column of the table points to one attribute of one property of KVC.

We must name property of KVC the same as field name in loader request to be able to sort table column. If not, sort is ignored.

Regards, Stef.

XML definition of a KeyValue container must include the properties element that defines the KeyValueEntity attributes. The order of nested property elements should conform to the order of result set columns returned by the query. For example, in the following definition the customer attribute will get its value from o.customer column and the sum attribute from sum(o.amount) column.

Docs with information about KeyValue Container:
https://doc.cuba-platform.com/manual-7.2/gui_keyvalue_containers.html