I am reading an xml file and displaying elements in a loop. I need it to show the next four records in the file by date (date is a field in each record). I am not sure how to accomplish that though. Here is an example:

record 1
Tom Houser
10/31/2009

record 2
Red Foxx
11/4/2009

etc... Once a date passes, that record should no longer show on screen when the flash loads.

This is a very simple concept

CS4 AS3