order method

SupabaseStreamBuilder order(
  1. String column, {
  2. bool ascending = false,
})

Orders the result with the specified column.

When ascending value is true, the result will be in ascending order.

supabase.from('users').stream(primaryKey: ['id']).order('username', ascending: false);

Implementation

SupabaseStreamBuilder order(String column, {bool ascending = false}) {
  _orderBy = _Order(column: column, ascending: ascending);
  return this;
}