Flutter: Order the results

Orders the result with the specified column.

Parameters

Examples

With `select()`

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

On a referenced table

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