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