mmm Thnx! i got another solution involving reformating the dates to YYYY/MM/DD, but using epoch dates looks nice too, and might use several less lines of code.
Thnx a lot :) ----- Mensaje original ---- De: Scott Melby <[EMAIL PROTECTED]> Para: [email protected] Enviado: miércoles, 11 de junio, 2008 13:51:41 Asunto: Re: [flexcoders] Order datagrid by date in DD/MM/YYYY format David - What you want to do is sort the data in your data provider. Typically I do this by storing the date as a number field (milliseconds since epoch) in the class that I am rendering. This allows numeric sorting on the date that is rendered in the column. The following snippet creates a Sort object which can then be set as the sort on your data provider when the date column is clicked. var sort:Sort = new Sort(); var dateMillisField: SortField = new SortField("dateMill is", true, false, true); sort.fields = [dateMillisField] ; Here is a pretty good livedocs entry on sorting data in datagrids. hth Scott -- Scott Melby Founder, Fast Lane Software LLC http://www.fastlane sw.com David Pariente wrote: Hi everyone, I have a datagrid with a Date column. I want user to be able to order by that date column, but the Dates in that column are in DD/MM/YYYY format, and flex doesn't order them propertly. Does anyone have a solution for that? Could tell Flex how should the column be ordered, by specifiyng format or something... ? I actually have no idea how to solve this :( Thnx a lot ____________ _________ _________ _________ _______ Enviado desde Correo Yahoo! La bandeja de entrada más inteligente. -- Scott Melby Founder, Fast Lane Software LLC http://www.fastlane sw.com http://blog. fastlanesw. com ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

