Example #1
0
 /**
  * Order selection by a column or expression.
  *
  * @param Expression|string|null $expression
  *            Expression or column.
  *            If null all ordering will be removed from selection.
  * @return SelectionBuilder A selection.
  */
 public function orderBy($expr)
 {
     $selection = new SelectionBuilder($this->getSource());
     return $selection->orderBy($expr);
 }