order()
Orders the result with the specified column.
1final data = await supabase 2 .from('cities') 3 .select('name, country_id') 4 .order('id', ascending: false );
Examples#
With select()
#
1final data = await supabase 2 .from('cities') 3 .select('name, country_id') 4 .order('id', ascending: false );
With embedded resources#
1final data = await supabase 2 .from('countries') 3 .select('name, cities(name)') 4 .eq('name', 'United States') 5 .order('name', foreignTable: 'cities');