Grails 2.3.4 Sorting / FindAll Changes
grails, sorting
Solution
I would use list:
`def results = Domain.list(sort: "lastUpdated")`
Problem
In my application, I had been sorting my domain object as follows: `def o = Domain.findAll(sort: 'lastUpdated')` In Grails 2.2.* , this was working fine and the results were being returned. Today, I upgraded to Grails 2.3.4, and that same syntax is throwing an error, stating that: `No property found for name [all] for class [sample.Domain]` What's the new syntax for sorting? Thanks in advance.