<% def list = [] %> <% list.add( it )%> <% list.sort{ a,b -> a.name <=> b.name }%>