var col:ICollectionView = new ArrayCollection();
// In the real world, the collection would have more than one item.
col.addItem({first:"Anders", last:"Dickerson"});
// 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("last",true), new SortField("first",true)];
// SortField(name:String, caseInsensitive:Boolean, descending:Boolean, numeric:Object)
// Assign the Sort object to the view.
col.sort = sort;
// Apply the sort to the collection.
col.refresh();