myArr:ArrayCollection = new ArrayCollection;
//myArr - set all ur data(xml file) in arrcol

var dataSortField:SortField = new SortField();
dataSortField.name = "name";//give the name by which u want to sort  r
arraycol
var sortArrCol:Sort = new Sort();
sortArrCol.fields = [dataSortField];

           myArr.sort = sortArrCol;
            myArrrefresh();

On Jan 12, 1:24 pm, Shishir <[email protected]> wrote:
> Hi,
>
> I have an XML file that contains month-related information. I am
> displaying this data in a datagrid. The problem is that Flex by
> default sorts the data alphabetically. Hence in my grid i am getting
> the wrong order of months since it sorts alphabetically.(Apr-Aug...)
>
> The data in the XML file is in the proper order : Jan-Feb.....Dec.
>
> Is there some method by which i can stop this auto-sorting of data by
> the Flex application.I think one way is to write my own sorting
> function for the same.It would be great if someone could suggest some
> other method for the above issue.
>
> Thanks,
> Shishir.
--~--~---------~--~----~------------~-------~--~----~
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