def results = Book.listOrderByAuthor() // everything
def results = Book.listOrderByTitle(max:10) // 10 results
def results = Book.listOrderByTitle(max:10, offset:100, order:"desc") // 10 results, offset from 100
max
- The maximum number to listoffset
- The offset from the first result to list fromorder
- The order to list by, either "desc"
or "asc"