initialize="initData()">
import mx.collections.*;
public var myArray:Array = ["B", "C", "D", "E", "F", "A"];
[Bindable]
public var myAC:ArrayCollection;
public function initData():void {
myAC = new ArrayCollection(myArray);
}
public function sortAC():void {
var sortA:Sort = new Sort();
sortA.fields=[new SortField("area", true, true),
new SortField("label")];
myAC.sort=sortA;
myAC.refresh();
}