How to sort array of structures
Hi !
I populated an array of structures:
ind is increased in a query loop:
<CFSET TD[ind] = StructNew()>
<cfset TD[ind].V1 = "#qryTermst.v1#">
<cfset TD[ind].V2 = "#qryTermst.v2#">
<cfset TD[ind].V3 = "#qryTermst.v3#">
<cfset TD[ind].D = "#DateFormat(qryTermst.date, 'M/D/YYYY')#">
<cfset TD[ind].V5 = "#qryTermst.v5#">
After the array is populated- later - I need to display it in descending order of D (dates) and in ascending order of V1.
I tried to use the StructSort function, but did not get results.
Any help will be appreciated !
Regards !
