import mx.collections.*;
public function sortAC():void {
var sortA:Sort = new Sort();
sortA.fields=[new SortField("label")];
myAC.sort=sortA;
myAC.refresh();
}
public function stateFilterFunc(item:Object):Boolean {
return item.label >= "B" && item.label < "C";
}
public function filterAC():void {
myAC.filterFunction=stateFilterFunc;
myAC.refresh();
}
public function resetAC():void {
myAC.filterFunction=null;
myAC.sort=null;
myAC.refresh();
}