I've got a query from a db that is returned as a ArrayCollection of Objects. I want to alphabetically sort by one property of the object. Coming back from the db.queryResults() the name of the property of the object is DmvValue3. How to I sort this. Below is my code and a screenshot of the Property from the ArrayCollection.
private function sortCollection(list:ArrayCollection):ArrayCollection
{
var sort:ISort = new Sort();
var sortField:SortField = new SortField(null, true);
sortField.setStyle("locale", "en-US");
sort.fields = [sortField];
list.sort = sort;
list.refresh();
return list;
}