Order By with Alias

Ryan Bales <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <[email protected]>
Hello

I have the following:

...
criteria.addAsColumn("relevance", matchClause);

and I would like to order by "relevance" --which obviously is  
undefined in my Torque classes.

so I tried:

criteria.addDescendingOrderByColumn("relevance");

but get the following error:

"removeSQLFunction() : Column name relevance DESC does not contain a .  
or a *"

Does anyone know of a way around this? I read some mention that the  
problem was resolved in RC3, but I am still getting the error. Any  
help would be great.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.