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.
The order to use.
Whether to order nulls first.
The foreign table to order by.
supabase.from("characters").select(columns = Columns.list("id", "name")) {
order(column = "id", order = Order.DESCENDING)
}
val columns = Columns.raw("""
name,
instruments (
name
)
""".trimIndent())
supabase.from("orchestral_sections").select(
columns = columns
) {
order(column = "id", order = Order.DESCENDING, referencedTable = "instruments")
}
val columns = Columns.raw("""
name,
section:orchestral_sections(name)
""".trimIndent())
supabase.from("instruments").select(
columns = columns
) {
order(column = "orchestral_sections(name)", order = Order.ASCENDING)
}