On Apr 29, 2007, at 1:07 AM, Ram Yalamanchili wrote:

>
> 1) select a func.count() column
> 2) Name an alias to it
> 3) use this alias with a .order_by
>


func.count(x).label('whatever')


then

order_by('whatever')

(or order_by=['whatever'], depending on context)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to