I'm trying to convert a SQL query to NHibernate QueryOver syntax, but I don't understand how to sort by the count projection.
This is what the SQL Query looks like:
select top 10 v.intVoteUserID, COUNT(v.intVoteUserID)
from Group_MessageVotes v
where v.dtmVote > :date
group by v.intVoteUserID
order by COUNT(v.intVoteUserID) desc
Any ideas?