I'm not sure how you'd go about it this way, but you can add any number of
Orderings to a SelectQuery. If the objects are already cached, you
shouldn't really see a performance hit. I've not tried it myself, however.
-- KevinOn 12/10/07 11:53 AM, "Alexander Lamb (dev)" <alam..ac.com> wrote:
> 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 - 12:21:49 EST