Reorder an Array
I have built an array like so
<cfset ABCArray = Arraynew(1)>
<cfset i = 0>
<cfloop query="ABC_Dates">
<cfset i = i + 1>
<cfset ABCArray=StructNew()>
<cfset ABCArray.project = project>
<cfset ABCArray.cdeyear = #getYear()#>
<cfset ABCArray.event_date = #displayDate()#>
<cfset ABCArray.event_date = #displayregDate#>
</cfloop>
So in the CFLOOP I want to be able to compare the current date to the event date and move the item to end of the array if it has passed so that the next upcoming event is on top. Does any know how to do this ? A code example would be great. Thanks.
