RE: [flexcoders] Sorting an XMLList on an attribute

2008-07-30 Thread Tracy Spratt
ction. xlcChildren.refresh();// Apply the sort to the collection. for (var i:int=0;imailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, July 30, 2008 5:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Sorting an XMLList on an attribute Correct, they don't re

RE: [flexcoders] Sorting an XMLList on an attribute

2008-07-30 Thread Alex Harui
July 30, 2008 2:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Sorting an XMLList on an attribute As I understand it, the collections APIs like XMLListCollection and ArrayCollection don't reorder their source lists at all, they just modify the way the lists are iterated over

Re: [flexcoders] Sorting an XMLList on an attribute

2008-07-30 Thread Daniel Gold
As I understand it, the collections APIs like XMLListCollection and ArrayCollection don't reorder their source lists at all, they just modify the way the lists are iterated over to return data in the requested order. So wrapping an Array in an ArrayCollection, adding a sort, and then trying to hand

RE: [flexcoders] Sorting an XMLList on an attribute

2008-07-30 Thread Alex Harui
XMLList doesn't support Sort From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gaurav1146 Sent: Tuesday, July 29, 2008 11:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sorting an XMLList on an attribute Hi, I am trying to

RE: [flexcoders] Sorting an XMLList on an attribute

2008-07-30 Thread Tracy Spratt
XMLList does not have a sort method. You could do the sort manually, a single level is pretty easy. Does sorting XMLListCollection sort the underlying"source" XMLList as well? If so, why not just use XMLListCollection in the sorting function only? Tracy