You can add another if clause in the comparator class that I posted a
few days back, to parse the two strings into Dates and return Date's
compareTo(). Or, you could write your own custom comparator.
I think you can also use two variables, with the display as String and
the underlying sort as Date, and use the sortProperty like another
poster did with numbers, but I am not 100% sure if that works with
dates.
Kathryn K. Jones
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
________________________________
From: Venkatesh D [mailto:[EMAIL PROTECTED]
Sent: Friday, December 08, 2006 12:20 AM
To: Jones, Kathryn K - IT ADS
Subject: Re: [displaytag-user] Sorting Issues
Hai ,
I am using displaytag library .By using that I am displaying
date in some datecolumn.When I am sorting that column it is unable to
sort the dates in particular
order.It comes in random order but not in ascending or descending .The
problem is ,in display tag sorting happens by character data.I am not
able to sort date.Please help me in this matter
Thanx in advance
Venkatesh D
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user