Is it possible to create a criteria that lists all objects sorted by sope property of their children? For example:
class Post {
User owner
}
Post.withCriteria {
order('owner.registerDate', 'asc')
}
It fails with message: Error 500: org.hibernate.QueryException: could not resolve property: owner.registerDate of: Post
What is the right way to do it?
Thanks in advance.