Changeset 877 for trunk


Ignore:
Timestamp:
03/21/11 22:57:48 (8 years ago)
Author:
gav
Message:

Add sort to assetSubItem show view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/assetSubItemDetailed/show.gsp

    r683 r877  
    135135                            <td  valign="top" style="text-align:left;" class="value"> 
    136136                                <ul> 
    137                                 <g:each var="s" in="${assetSubItemInstance.subItems}"> 
     137                                <g:each var="s" in="${assetSubItemInstance.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 
    138138                                    <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 
    139139                                </g:each> 
Note: See TracChangeset for help on using the changeset viewer.