orderBy method

QueryBuilder orderBy(
  1. String field, [
  2. String direction = 'ASC'
])

ORDER BY clause

Implementation

QueryBuilder orderBy(String field, [String direction = 'ASC']) {
  final dir = direction.toUpperCase() == 'DESC' ? 'DESC' : 'ASC';
  _orderBys.add('$field $dir');
  return this;
}