I have to do something like you did, the problem is that I already had a lot of sort functions (for int, doubles, dates, etc), now thanks to this issue(?) that functions became useless....
So if this is a bug, will be great if they can fix it.... regards... --- In [email protected], "Scott Romer" <[EMAIL PROTECTED]> wrote: > > I'm not sure if this is a bug, but I found this situation a while ago. > The solution that I had to use was to keep track of the column header > that is clicked on, and then use that to get the appropriate dataField > from the object so that I could compare the two objects. > > This is not that elegant of a solution, but seems to be working for > me. If there is a better way to do this, I am all ears. > > > --- In [email protected], "jpwarmer" <jpwarmer@> wrote: > > > > Hi All, > > > > In Flex 1.5, if you want to use a custom sort for columns in dataGrid > > you could pass a function to the colunm. That function need to have > > the following signature: > > > > mySortCompareFunction(obj1 : Object, obj2 : Object, columnIndex : > > Number) : Number > > > > In this case, Flex will pass into obj1 and obj2, the data in the cells > > that need to be compared. > > > > In Flex 2, the sort function signature has change into > > > > mySortCompareFunction(obj1:Object, obj2:Object) : int > > > > and now, Flex pass into obj1 and obj2, the entires rows (as an object, > > of course). > > > > I'm doing a migration an that's what happening, so, is this a bug??? > > o just is how it works now??? > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

