I think what you are looking for is the Sort object for the ICollectionView interface of ArrayCollections. With a sort you can choose what you want to sort by and then apply that to a data collection.
That would allow you to specify you want the collection of data ordered by the date desecnding and then display that data. These links in the docs should get you started. http://livedocs.macromedia.com/flex/2/langref/mx/collections/Sort.html http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000598.html Good Luck, simeon On 1/8/07, Chris MacGregor <[EMAIL PROTECTED]> wrote:
I'm just getting ramped up with Flash in order to build some investing related tools for a client. One of the issues that I'm having trouble digging up information on is handling the order of data. I'm still slogging my way through the documentation for Flex and my knowledge of the terminology is a little sketchy, so forgive me if this is something that should be right in front of my face. When I request a range of stock data to build a HLOCChart it comes in in reverse chronological order, newest date first. I want to display the data in chronological order with Jan 1, 2006 on the left and Dec 31 2006 on the right. How do I go about processing the order once I've got the XML back? Thanks kindly for any pointers. CHris

