Thanks

On Sat, Feb 20, 2010 at 9:59 AM, NIRMAL SINGH <[email protected]> wrote:

>  Please check sortCollection function mentioned below which takes 2
> sorting field
> =======================================
>  var acol:ArrayCollection = new ArrayCollection();
>     // In the real world, the collection would have more than one
> item.
>     acol.addItem({city:"noida", state:"up"});
> =======================================
> ArrayCollection is of type declared above
> =======================================
>
>  public function sortCollection(col : ArrayCollection) : void
> {
>     // Create the Sort instance.
>     var sort:Sort = new Sort();
>     // Set the sort field; sort on the last name first, first name
> second.
>     // Both fields are case-insensitive.
>     sort.fields = [new SortField("city",true), new
> SortField("state",true)];
>       // Assign the Sort object to the view.
>     col.sort = sort;
>     // Apply the sort to the collection.
>       col.refresh();
> }
>
> On Feb 19, 7:22 pm, baskaran rajendran <[email protected]> wrote:
> > Hi,
> >         How can i sort arraycollection using more than one sort field.
> >
> > Any suggestion?
> > --
> > Best Regards
> > Baskaran.R
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
Best Regards
Baskaran.R

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to