For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
Order the query result by column.
The column to order by
Whether the rows should be ordered in descending order or not.
Foreign table name whose results are to be ordered.
Order by showing nulls first
response = (
supabase.table("planets")
.select("*")
.order("name", desc=True)
.execute()
)
response = (
supabase.table("orchestral_sections")
.select("name, instruments(name)")
.order("name", desc=True, foreign_table="instruments")
.execute()
)
response = (
supabase.table("instruments")
.select("name, section:orchestral_sections(name)")
.order("section(name)", desc=False)
.execute()
)