Sort / CFLOOP
I have an excel that I read and create a query object using this code
<cfspreadsheet action="read" src="#theFile#" query="qData" headerrow="1" excludeHeaderRow ="true" columns="9,15,51,56,57,58,59" />
So now I have a query object that I output and it outputs in the order that is in the excel.
I loop through it like this
<cfloop query="qData">
and I get this
| ID | Value |
|---|---|
| 1 | Adams |
| 2 | Jones |
| 3 | Smith |
| 4 | Johnson |
| 5 | Williams |
Now I need to do the order in reverse like this
| ID | Values |
|---|---|
| 5 | Williams |
| 4 | Johnson |
| 3 | Smith |
| 2 | Jones |
| 1 | Adams |
Can I sort by a loop? How ?
