Say, i have an entity 开发者_StackOverflowthat 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).
Lets say I have the following one-to-many relationship: Site has many Users User belongs to one Site I\'ve setup the relationship like this