I Have Such a domain class in my project:
class Log {
Integer entityId
Integer tableId
Date logDt
}
I would like to select all the records by a certain tableId, and sort them by entityId and logDt desc. Sorting by one filed works fine:
Log.findAllByTableId(tableID, [sort: 'entityId', order: 'desc'])
but when I try to sort by both fields:
Log.findAllByTableId(tableID, [sort: 'entityId,logDt', order: 'desc'])
I get an error that there is no such field 'entityId,logDt'
at this table.
What is the right syntax to do so?
Thanks.