AnsweredAssumed Answered

SearchParameters and sorting by date

Question asked by morgan_david on Mar 19, 2008
Latest reply on Jul 15, 2008 by andy
I'm using the Java foundation APIs for searching the repository and I'm trying to apply a sort on a date field.
Code example of what I'm trying to do:

From model:

<property name="ident:identDate">

String sortField = "@ident\\:identDate"
boolean sortAsc = true;
searchParams.addSort(sortField, sortAsc);

Now I'm able to sort by other properties in the model that are d:text.  Is there something special that needs to be done to sort by dates?

Thank you.