Sorting Datagrid by Date Column

I’ve got a datagrid with a couple columns with dates (in DD/MM/YYYY string format) that I’d like the user to be able to sort on by clicking the column headers. Unfortunately, Flash treats the data as numbers and puts 01/01/2000 before 02/02/1900.

I’ve added a headerRelease listener to my datagrid that fires when the user clicks the column header. I’ve written a custom sort function called SortOnDate which I know works. I put the sort command into the headerRelease function as dataProvider.sort(SortOnDate).

If I trace the dataProvider, the data IS CORRECT. However, the data in the datagrid is still sorted incorrectly.

I’m assuming what’s going on is the correctly sorted data goes into the datagrid, but the datagrid still applies the incorrect sorting to the data when it tries to display it since the column header is selected. Any solutions to this?