Python: Order the results

Order the query result by column.

Parameters

Examples

With `select()`

response = (
    supabase.table("countries")
    .select("*")
    .order("name", desc=True)
    .execute()
)

On a foreign table

response = (
    supabase.table("countries")
    .select("name, cities(name)")
    .order("name", desc=True, foreign_table="cities")
    .execute()
)