|
From: <sub...@co...> - 2007-04-25 14:17:49
|
Author: novalis Date: 2007-04-25 08:17:43 -0600 (Wed, 25 Apr 2007) New Revision: 2592 Modified: SQLObject/docs/SQLObject.txt Log: documented orderby multiple columns Modified: SQLObject/docs/SQLObject.txt =================================================================== --- SQLObject/docs/SQLObject.txt 2007-04-24 15:45:32 UTC (rev 2591) +++ SQLObject/docs/SQLObject.txt 2007-04-25 14:17:43 UTC (rev 2592) @@ -572,7 +572,10 @@ the select statements: `orderBy` takes a string, which should be the *database* name of the column, or a column in the form ``Person.q.firstName``. You can use ``"-colname"`` to specify -descending order, or call ``MyClass.select().reversed()``. +descending order (this is translated to DESC, so it works on +non-numeric types as well), or call +``MyClass.select().reversed()``. orderBy can also take a list of +column names in the same format as a single column name. You can use the special class variable `_defaultOrder` to give a default ordering for all selects. To get an unordered result when |