2006/1/5, zgoda <[EMAIL PROTECTED]>:
>
> The doc you mention says it's possible.
>
> """
> You can use the keyword arguments orderBy to create ORDER BY in 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().
> """
>
> Anyway, I don't know how to make ordering by 2 columns, one asc and one
> desc.

I guess the docs are not complete. You can pass multiple columnnames in a list:

results = Employee.select(orderBy=['-title', 'age'])
--
Ksenia

Reply via email to