orderBy method

Query<T> orderBy(
  1. String? orderBy,
  2. String? dir
)

Implementation

Query<T> orderBy(String? orderBy, String? dir) {
  if (orderBy == null || dir == null) return this;

  _orderBy.add(OrderBy(column: orderBy, dir: dir));

  return this;
}