Hi everyone! I have a simple many-to-one relation between class A and class B, and I'd like to use a Query to get the "A" instances sorted by a B attribute (e.g. "code").. I tried with something like this:
q = session.query(A) q.order_by(A.list_of_b.code) but obviously "list_of_b" doesn't know about codes.. How should I do it? Many thanks! (SQLA 0.5.2) --~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---