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 > Sort on Dates in a Collection

recipe 12.11. Sort on Dates in a Collection

12.11.1. Problem

You need to sort on the date values that are stored as string properties of data objects.

12.11.2. Solution

Create new Date objects from each object’s date property and use the dateCompare() method of the mx.utils.ObjectUtil class to compare the dates.


  

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