Yes, sorting is something that happens on entire data items ("rows"). This lets you handle the case where there are multiple cells in a column with the same value and you want to subsort them based on another column:
California | Los Angeles California | San Francisco NewYork | NewYork Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Hughitt Sent: Friday, February 27, 2009 8:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Converting strings to numbers before sorting? > var a:Number = obj1.number; > var b:Number = obj2.number; That made things much more clear. The reason things weren't working for me was because I expected the sort function to receive only the variable mapped to the column (i.e. "number") and not the entire row. The above worked perfectly for me. Thanks for the help :) Take care, Keith