listOrderBy*
目的 Purpose
Lists all of the instances of the domain class ordered by the property in the method expression使用例 Examples
// everything
def results = Book.listOrderByAuthor()// 10 results
def results = Book.listOrderByTitle(max: 10)// 10 results, offset from 100
def results = Book.listOrderByTitle(max: 10, offset: 100, order: "desc")
詳細 Description
パラメータ: Parameters:
max
- The maximum number to listoffset
- The offset from the first result to list fromorder
- The order to list by, either"desc"
or"asc"