If you specify the actual Date object as the property, it'll get sorted correctly. Write a ColumnDecorator to change the formatting.
WILL ----- Original Message ----- From: "Brad Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 26, 2004 6:04 PM Subject: [displaytag-user] Sorting on Date Fields I have an application using DisplayTag that has a date field which needs to be sortable. Getting the field sorted and displayed in a suitable format is easy. The problem is that the customer wants the date format to follow the odd US convention of MM d, yyyy, e.g. Aug 26, 2004. Since this formatted date is a string, sorting yields results which are not in true date order, rather they are in collating sequence order. Could someone please suggest a process to display the date in the desired format, yet also sort in correct date order? A decorator does not seem to be the solution, but I could be incorrect. Thank you, Brad -- Brad Smith <[EMAIL PROTECTED]> ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

