No, you are correct, they are views and don't disturb the original data. That's what I get for going too fast.
I also didn't read your code snippet. I think you can't use a function in a SortField's name param. I don't think it is that smart. Use a compareFunction instead. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Saturday, August 09, 2008 7:43 AM To: [email protected] Subject: [flexcoders] Re: Sorting XMLListCollection by childIndex() --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I think as the sort happens, the child indexes will change. I thought the XMLListCollection was just an view of the original XMLList>XML object. If that's true, childIndex() should always refer to the child's position relative to the original parent, as parent() refers to the original parent in an XMLList even when the parent is no longer part of the XMLList. Or have I misunderstood what collections do? Is there some other kind of collection that preserves all the original XML information?

