order()
Orders the result with the specified column.
final res = await supabase
.from('cities')
.select('name, country_id')
.order('id', ascending: false )
.execute();
Examples
With select()
final res = await supabase
.from('cities')
.select('name, country_id')
.order('id', ascending: false )
.execute();
With embedded resources
final res = await supabase
.from('countries')
.select('name, cities(name)')
.eq('name', 'United States')
.order('name', foreignTable: 'cities')
.execute();