db(db.artikles).select(orderby=~db.artikles.date, limitby=(0,5))

See 
http://web2py.com/books/default/chapter/29/6#orderby,-groupby,-limitby,-distinct
.

Anthony

On Tuesday, April 17, 2012 4:47:18 PM UTC-4, BlueShadow wrote:
>
> Hi,
> I got a table for artikles and I like to display the 5 of them sorted by 
> date starting witth the most recent.
> the table has 3 fields article name content and date.
> It should be pretty easy but I got no clue where to start.
>

Reply via email to