1 Reply Latest reply on Dec 9, 2010 7:21 AM by lvdberg

    Sort taskInstanceList

    vata2999

      Hi,
      How can i sort


      #{taskInstanceList}



      variable descending ?

        • 1. Re: Sort taskInstanceList
          lvdberg

          Hi,


          TaskInstance doesn't implement the Comparable interface, which helps you to sort with the aid of for instance a Tree. You need a Comparator which can be provided as a parameter for the Collections.sort methods. Another possibility is to write your query which retrieves sorted TaskInstances.


          Leo