Is there a way to get a list ordered by two fields, say last and first names?
I know .listOrderByLastAndFirst and .list(sort:\'last, first\')
.listOrderByLastAndFirst
.list(sort:\'last, first\')
This query is working on the basis of first field. When the first field is blank then it is shorted by the second field.
order('last','desc') order('first','desc')