Say, i have an entity that has a history of operations as a collection. I want to sort entities by the date of the latest operation (it's the first element of history).
i'd like to do something like this:
criteria.addOrder(Order("history[0].date"))
is this possible?