Re: Problem: Ordering.orderList and date-values

From: Juergen Saar (juerge..saar.org)
Date: Mon Dec 04 2006 - 09:33:49 EST

  • Next message: Michael Gentry: "Re: Re: Problem: Ordering.orderList and date-values"

    1 additional information:

    The orderList method is call with 2 sort criteria 1. Date, 2. Short

    2006/12/4, Andrus Adamchik <andru..bjectstyle.org>:
    >
    > java.lang.Comparable is used to order Date fields. "toString" is not
    > involved anywhere on Cayenne end. Is there a chance you are
    > converting the values to Strings yourself before doing the
    > comparison? And what version of Cayenne is that?
    >
    > Andrus
    >
    >
    > On Dec 4, 2006, at 1:52 PM, Juergen Saar wrote:
    >
    > > Hi,
    > >
    > > if I use
    > >
    > > public static void *orderList*(java.util.List objects,
    > > java.util.List orderings)
    > >
    > >
    > > from the Ordering-Class for sorting date-values it behaves like a
    > > toString()
    > > from the date-values is sorted and so it's a order-by-day and not a
    > > order-by-date.
    > >
    > > Is there anything I can do?
    > > --- Juergen ---
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Dec 04 2006 - 09:34:15 EST