dont know enough about how you are getting this XML, but if you have any way of sorting the structure at the server, it'll be a whole lot quicker...
On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote: > > just parse it in mode: <item> to object: {name:Alice,title:foo} and push to > array > > the use array.sortOn(property), > much more is in livedocs, on flags like asc,desc, numerical etc > > M > > > > ----- Original Message ----- > From: "eric dolecki" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> > Sent: Monday, March 20, 2006 7:27 PM > Subject: [Flashcoders] Alphabetize XML > > > > Quick question... > > > > I have XML coming in with nodes something like this: > > > > <xml> > > <item> > > <name>Alice</name> > > <title>Foo</title> > > </item> > > <item> > > <name>John</name> > > <title>Bar</title> > > </item> > > </xml> > > > > I'd like to be able to sort the item chunks alphabetically on the name > > nodes. Whats the best approach to do this? > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com