History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1775
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Graeme Rocher
Reporter: Paul Bowler
Votes: 4
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Grails

Add 'sort' attribute to <g:each> tag

Created: 02/Nov/07 10:54 AM   Updated: 16/Jan/08 11:22 AM
Component/s: TagLib
Affects Version/s: 0.6
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
It would be useful to be able to sort items within a <g:each> tag based upon domain attributes, both ascending and descending.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jason Morris - 16/Jan/08 11:22 AM
I totally agree, it is a bit weird how g:each does not seem to return results in a deterministic order, and adding this would allow the user to control that.