[flexcoders] Re: how to retrieve sorted subset of an arraycollection?

2008-11-04 Thread blc187
What I meant to say is that I am applying a filter, not a sort to the 
arraycollection. Applying the filter results in a subset of the items 
being shown.

There is an internal property called localIndex that holds just the 
filtered items, but I am not sure if there is any way to access or 
manipulate this?



--- In flexcoders@yahoogroups.com, blc187 [EMAIL PROTECTED] wrote:

 Hi,
 I have an arraycollection of about a dozen or so items.
 I am applying a sort to that collection and I usually end up with 
 about 3-4 items after the sort is applied.
 
 Is there a way I can grab just the sorted subset of those 3-4 items 
 from that arraycollection?
 If I clone the array or grab the source it includes the entire 
 collection instead of just the subset.




RE: [flexcoders] Re: how to retrieve sorted subset of an arraycollection?

2008-11-04 Thread Alex Harui
toArray()

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of blc187
Sent: Tuesday, November 04, 2008 9:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to retrieve sorted subset of an arraycollection?


What I meant to say is that I am applying a filter, not a sort to the
arraycollection. Applying the filter results in a subset of the items
being shown.

There is an internal property called localIndex that holds just the
filtered items, but I am not sure if there is any way to access or
manipulate this?

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
blc187 [EMAIL PROTECTED] wrote:

 Hi,
 I have an arraycollection of about a dozen or so items.
 I am applying a sort to that collection and I usually end up with
 about 3-4 items after the sort is applied.

 Is there a way I can grab just the sorted subset of those 3-4 items
 from that arraycollection?
 If I clone the array or grab the source it includes the entire
 collection instead of just the subset.