Hi Lorin
So doesn't that work? This is what the book says:
And you can sort the records according to multiple fields by
concatenating them with a "|":
>>> for row in db().select(db.person.ALL, orderby=db.person.name|db.person.id):
print row.name
Regards,
-D
On Dec 20, 5:07 pm, Lorin Rivers <[email protected]> wrote:
> How do I turn a list of fields to an orderby expression?
>
> In other words, If I have this: [db.table.field1, db.table.field2]
>
> I want this: db(db.table).select(orderby = db.table.field1 | db.table.field2)
>
> Thanks!
> --
> Lorin Rivers
> Mosasaur: Killer Technical Marketing <http://www.mosasaur.com>
> <mailto:[email protected]>
> 512/203.3198 (m)