Hi,
My SQL is like "select host, count(*) as cnt from tbl group by host order by cnt desc"
How to achieve this using ORM?
session.query(Tbl.host, func.count('*').label('cnt')).group_by(Tbl.host).order_by(???)
I don't wanna type again func.count... in order_by().
Thanks.