Re: [SQLObject] orderBy table.q.attribute
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Philippe N. <sw...@fr...> - 2004-04-23 15:02:38
|
On Fri, Apr 23, 2004 at 06:48:43PM +0400, Oleg Broytmann wrote:
> Hello.
>=20
> How can I orderBy using table.q.attribute magic?
>=20
> patients =3D Patient.select(None, orderBy=3D-Patient.q.registrationTime)
>=20
Well, what's the dash out there ? If you want to order by registrationTime
DESC, used reversed param like:
patients =3D Patient.select(orderBy=3DPatient.q.registrationTime,
reversed=3DTrue)
=20
--=20
Philippe Normand
|