For #2, look at ArrayCollection.sort. You can create a sort object and use a slightly modified version of your date_sortCompareFunc for the compareFunction of the Sort object.
I've never really found a good way to do #1, so I'd be interested in that if you or anyone else finds a way. On Thu, Sep 4, 2008 at 5:09 PM, leonpidgeon <[EMAIL PROTECTED]> wrote: > hi > > getting frustrated with this. > > i have an arraycollection which populates a datagrid. the > arraycollection has one field which is date and contains dates in the > format dd/mm/yyyy. > > the date column in the date grid has > sortCompareFunction="date_sortCompareFunc" which i have found > elsewhere on the internet and works perfectly when the column header > is clicked. However, when the datagrid is populated it needs sorting > so i think the 2 options i have are either, > > 1) call something to do this sort as if someone has clicked on the > header > 2) sort the array collection on the date field. > > any thoughts on how i could do either of these and it will be greatly > appreciated. > > Leon > > > -- Jason

