You always have to options:

sort at the db level (1) or sort ate the web2py level (2)

1)

rows = db(query).select(orderby=db.table1.field1)

2)

rows=rows.sort(lambda row: row.table1.field1)



On Nov 5, 12:31 pm, yamandu <[email protected]> wrote:
> I need to do .sort() in a Rows object gerenarate by select join.
> I get key error if I use onlye the field name.
>
> Looks like the structure is different when it comes from a join.
>
> So it sort must be different. This is bad.
> How to do it?

Reply via email to