I'm trying to sort emails off my email server for a basic web interface, but am
having problems sorting the messages by date.

I am using a query of query and can sort by messageNumber, but when I try to
sort by date, it dies on me. Here's my code:

<cfpop
action="getheaderonly"
name="tempqGetMessages"
server="#mailServer#"
timeout="90"
username="#session.username#"
password="#session.userpass#">


<cfquery name="qGetMessages" dbtype="query">
select *
from tempqGetMessages
order by tempqGetMessages.date desc
</cfquery>

Please help !