On 1/29/07, iain duncan <[EMAIL PROTECTED]> wrote:
> I've been looking on the SA docs but don't see an easy way to add
> ordering on a column to an assign_mapper query. Am I missing one? Should
> I just sort the list after the query if assign_mapper will do everything
> else I need with minimal syntax?
>
> Aside to turbo_mapper extension guys: this syntax ( django'ish ) or
> something similar is really handy:
>
> menus = Menu.select_by( parent_id=1 ).order_by( order_col )

Sorry I don't have time to verify this, but have you tried this:
menus = Menu.select_by( parent_id=1, order_by='order_col' )

Arnar

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

Reply via email to