I want to integrate sort, order, max and offset in a findAll query. The following works fine:
def books = Book.findAll(\"from Book as b where b.approved=true ord
Using "findAllBy" because it supports sort and order.
def results = Book.findAllByTitle("The Shining", [max: 10, sort: "title", order: "desc", offset: 100])
Click here for details.