This is my query I want the column "total" which is in a CFLOOP query to sort in descending order..
I thought this would work but it is not being sorted. Is there a problem in
the query that I am missing..
Thanks in advance,
Olmos..
<CFQUERY name="exploit" datasource="#PrimaryDataSource#">
SELECT distinct exploit_id, exploit_method
FROM exploit
</cfquery>
<CFLOOP query="exploit">
<CFQUERY name="get_count" datasource="#PrimaryDataSource#" >
SELECT count(id) "total"
FROM computer j, event e
Where j.id = e.event_id
AND e.date BETWEEN '#fiscal_year_start#' AND '#fiscal_year_end#'
AND j.exploit_id = '#exploit_id#'
ORDER BY "total" DESC
</CFQUERY>
... <td>#exploit_method#</td>
... <td>#get_exploit_count.total# <br>
</cfloop>