More than one ordering for in memory sort

From: Alexander Lamb (dev) ("Alexander)
Date: Mon Dec 10 2007 - 11:53:54 EST

  • Next message: Kevin Menard: "Re: More than one ordering for in memory sort"

    Hello List,

    I am sorting a to-many list in memory:

         List<RegistryEnrollment> re = getEnrollments();
         Ordering ordering = new Ordering("year", true);
         ordering.orderList(re);
         return re;

    But I would like to add a second sort criteria (month after year)

    I found there were expressions, but no example for formatting them.

    Thanks,

    Alex

    --
    Alexander Lamb
    alam..ac.com
    



    This archive was generated by hypermail 2.0.0 : Mon Dec 10 2007 - 11:55:01 EST