Skip to main content
Version: v1-dev

order()

Orders the result with the specified column.

final data = await supabase
.from('cities')
.select('name, country_id')
.order('id', ascending: false );

Examples

With select()

final data = await supabase
.from('cities')
.select('name, country_id')
.order('id', ascending: false );

With embedded resources

final data = await supabase
.from('countries')
.select('name, cities(name)')
.eq('name', 'United States')
.order('name', foreignTable: 'cities');