In grails, how to domain collection sort on multiple attributes?
In grails domain objects you can have a default sort order:
class Airport {
…
static hasMany = [flights: Flight]
static mapping = {
flights sort: 'number', order: 'desc'
}
}
Is there any way to sort on more than one attribute using this method?