Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-157

New tag that generates sorted collection

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.0
    • taglib.util
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            felipeal Felipe Leme
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: