I have created a one dimension array structure with the
structure elements of id number and matches. I want to collect all
of the id numbers and loop through all of the matches. When the
matching criteria is finished, I would like to show the id numbers
with the most matches. How do I sort a structured array? I have
tried the following:
<cfset applicant_array = arraynew(1)>
...start matching loop...
,,,
<cfset applicant_array[idx] = StructNew()>
<cfset applicant_array[idx].matches =
applicant_array[idx].matches+1>
<cfset applicant_array[idx].id =
#applicant2characteristic.applicant_id#>
...end matching loop
<cfset temp=#ArraySort(applicant_array, "text",
"desc")#>
The sort fails because it is on a structure. I tried using
the structure element, but that fails as well. Is there a command
for sorting a structure array by a specific element?
TIA,
Jim