public function orderBy($column, string $direction = 'asc'): self
    {
        $column = $this->checkStringValue('Argument $column', $column);
        $this->order[] = new Order($column, strtolower($direction) === 'desc');
        return $this;
    }
public function orderBy($column, string $direction = 'asc'): self
    {
        $column = $this->checkStringValue('Argument $column', $column);
        $this->order[] = new Order($column, strtolower($direction) === 'desc');
        return $this;
    }
public function orderBy ( $ column , string $ direction = 'asc' ) : self { $ column = $ this -> checkStringValue ( 'Argument $column' , $ column ) ; $ this -> order [ ] = new Order ( $ column , strtolower ( $ direction ) === 'desc' ) ; return $ this ; }
Adds a simple order to the orders list.

@param string|\Closure|self|StatementInterface $column Column to order by
@param string $direction Order direction: `asc` - ascending, `desc` - descending
@return $this
@throws InvalidArgumentException
@throws InvalidReturnValueException
Adds a simple order to the orders list .