On Wed, 2007-04-25 at 00:24 +0400, Oleg Broytmann wrote: > On Tue, Apr 24, 2007 at 03:51:40PM -0400, David Turner wrote: > > > orderBy() requires a list: > > > > > > Table.select(query).orderBy(["col1 asc", "col2 desc"]) > > > > I get errors when I try the first of these. > > Oops, I have forgotten about that special SQLObject syntax. > > Table.select(query).orderBy(["col1", "-col2"]) > > And, of course, orderBy() is smart enough not to require a list of one > item: > > Table.select(query).orderBy("-col2")
Thanks. I added this to the docs. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss