Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Collections > Filter and Sort an XMLListCollection

recipe 12.9. Filter and Sort an XMLListCollection

12.9.1. Problem

You need to filter and then sort an XMLListCollection.

12.9.2. Solution

Use the filterFunction and sortFunction properties of the ListViewCollection class that the XMLListCollection class extends, or simply pass a custom Sort object to the sort property of an XMLListCollection instance.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial