= "Houston" && item.name <= "New York"; } public var xmlData:XML = Bob Freely 25
111 Main
Anders Wiley 26
222 Main
Cathy Wayens 22
333 Main
Smith Nearly 32
444 Main
; public var colXML_AS:XMLListCollection;; public var colArr_AS:ArrayCollection; public var cursorXML_AS:IViewCursor; public var cursorArr_AS:IViewCursor; public var cursorArr_Airport:IViewCursor; public var cursorArr_Inline:IViewCursor ; public function initEmployees():void { //apply the appropriate Sorts var sortXML:spark.collections.Sort = new spark.collections.Sort(); var sortFieldXML:spark.collections.SortField = new spark.collections.SortField("last-name"); this.addStyleClient(sortXML); this.addStyleClient(sortFieldXML); sortXML.fields=[sortFieldXML]; colXML_AS = new XMLListCollection(xmlData.employee) colXML_AS.sort=sortXML; colXML_AS.refresh(); cursorXML_AS = colXML_AS.createCursor(); } ]]>