+ you can use ~ to reverse order. http://web2py.com/book/default/chapter/06#orderby,-groupby,-limitby,-distinct
On Thu, Feb 3, 2011 at 2:21 PM, dederocks <dediro...@gmail.com> wrote: > Hi Johann, > > Just use "|": > orderby=db.table.name|db.table.surname > > On 3 fév, 13:56, Johann Spies <johann.sp...@gmail.com> wrote: > > According to the book the syntax to create an 'order by' query is > > db(query).select(ALL,orderby=field). > > > > What if I want to use more than one field in the 'order by' ? > > > > Regards > > Johann > > > > -- > > May grace and peace be yours in abundance through the full knowledge of > God > > and of Jesus our Lord! His divine power has given us everything we need > for > > life and godliness through the full knowledge of the one who called us by > > his own glory and excellence. > > 2 Pet. 1:2b,3a >