Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0
-
None
Description
A cool tag would be one that takes one collection (or map) and returns a new collection/map, sorted by a given property (on each of the collection's elements).
This tag could be used, for instance, on Maven's multiproject plugin to generate a sorted report of sub-projects:
<util:sort var="multiprojectsSortedByName" items="${multiprojects}" sortingProperty="name"/>
Such tag shouldn't be hard to implement, but I haven't the time to do the full job right now (i.e., writing the tag, test cases, documentation, etc...), but I can give it a shot in the near future, if there is enough interested on such feature (in other words, if someone is willing to commit the changes .
– Felipe