On Fri, Mar 17, 2006 at 05:24:48AM -0800, Italo Maia wrote:
> 
> Well, let's see, i have this query :
> "noticias=Noticia.select(orderBy=Noticia.q.data)"
> where 'data' is when the 'noticia' was created. So, this query should
> send me a list ordered by data, from newer to older, ain't that right?
> It's giving me a list order from oldest to newer...what am i doing
> wrong?

You can also try:

noticias=Noticia.select(orderBy='-data')

This will do a reverse ordering in the database, instead of having to loop
over all the data twice.

Jason

-- 
If you understand, things are just as they are.  If you do not understand,
things are just as they are.

Attachment: pgpOVU17XVZuB.pgp
Description: PGP signature

Reply via email to