« Return to Thread: Facing Issues with velocity sortTool to sort Two java.util.Date Type

Re: Facing Issues with velocity sortTool to sort Two java.util.Date Type

by Nathan Bubna :: Rate this Message:

Reply to Author | View in Thread

Could you be more specific about what you mean by "not working"?  What
happens?  The code sample looks like you are already implementing the
search pattern you want.  Why not just try:

$sorter.sort(${campaign.notes})

On Mon, Apr 20, 2009 at 3:42 AM, Ranjeet <ranjeet.jha@...> wrote:

> Hi All,
>
> I am using velocity 1.5 sortTool to sort the properties of list. I am
> sorting two date, createdAt and updatedAt both property of dto are
> java.util.Date type. I am trying to sort on updatedAt first and if updatedAt
> is null then on createdAt. Its working fine if there is some value
> in updatedAt, but its not working if  updatedAt has null value. Please help
> me out of this problem. code sample is attached with this mail.
>
> Thanks & Regards,
> Ranjeet
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: Facing Issues with velocity sortTool to sort Two java.util.Date Type