order()
用指定的列对结果进行排序。
1final data = await supabase 2 .from('cities') 3 .select('name, country_id') 4 .order('id', ascending: false );
Examples#
使用 select()
#
1final data = await supabase 2 .from('cities') 3 .select('name, country_id') 4 .order('id', ascending: false );
有嵌入式资源
1final data = await supabase 2 .from('countries') 3 .select('name, cities(name)') 4 .eq('name', 'United States') 5 .order('name', foreignTable: 'cities');