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.
Orders the result with the specified column.
The column to order by.
Whether to order in ascending order. Default is `false`.
Whether to order nulls first. Default is `false`.
Specify the referenced table when ordering by a column in an embedded resource.
final data = await supabase
.from('instruments')
.select('id, name')
.order('id', ascending: false);
final data = await supabase
.from('orchestral_sections')
.select('''
name,
instruments (
name
)
''')
.order('name', referencedTable: 'instruments', ascending: false);
final data = await supabase
.from('instruments')
.select('''
name,
section:orchestral_sections (
name
)
''')
.order('section(name)', ascending: true)