On Fri, Jul 13, 2007 at 03:06:32PM -0500, Kevin J. Rice wrote: > Res1 = TableNameHere.select(TableNameHere.q.fieldNameHere == > False).orderBy("field1, field2") # correct results > Res2 = TableNameHere.select(TableNameHere.q.fieldNameHere == > False).orderBy("-field1, field2") # same as 3
The only correct way to order by multiple values is to pass a list, not a string: .orderBy(["-field1", "field2"]) Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- 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