sorting tables based on Views

How can I make a Table sortable when Table datasource is based on a View in entities?
Tables are sortable if created directly from an Entity, but when i have made a View that uses different types of Entities I can not sort the Table?

An example is as follow:
Order has Orderlines, I have Order info on the page and a Table with Orderlines in the same page. The page Orderlines is not sortable.
See attached project.
Is there something i have done wrong? (386.9K)

1 Like

Your table is not sortable because the underlying collection (Set orderlines) cannot be ordered. Change it to List or LinkedHashSet.

1 Like

Opps. I forgot.

It’s not your fault, because the reason is not obvious. We will try to explain it somewhere in the docs.