From a list of GORM database objects that are ordered desc in my user domain model I want to order them asc (i.e., in reverse order in the view). For example to get the latest books of a user from the database, but insert them in the Dom in reverse order where the latest book comes last.
How do I perform a reverse each in my GSP?
Controller:
def books = user.books
GSP:
<g:each in="${books}" var="book">${book}</g:each>