ok so I am trying to do something like the below to order by :joins (I
know the below won’t work)…the only solution that I can fathom is
using something like find_by_sql - but I certainly would prefer a
simpler method…any suggestions?
User.find(:all, :joins => :deals, :group => ‘rev’, :conditions =>
[‘saledate >= ? AND saledate <= ?’, Time.now.at_beginning_of_month,
Time.now.at_end_of_month], :order => “deals.rev.sum DESC”)