public function sort(string $column, bool $desc = false) : self
    {
        return $this->order($this->getColumn($column)['name'] . ' ' . ($desc ? 'DESC' : 'ASC'));
    }
public function sort(string $column, bool $desc = false) : self
    {
        return $this->order($this->getColumn($column)['name'] . ' ' . ($desc ? 'DESC' : 'ASC'));
    }
public function sort ( string $ column , bool $ desc = false ) : self { return $ this -> order ( $ this -> getColumn ( $ column ) [ 'name' ] . ' ' . ( $ desc ? 'DESC' : 'ASC' ) ) ; }
Sort by a column
@param  string       $column the column name to sort by (related columns can be used - for example: author.name)
@param  bool|boolean $desc   should the sorting be in descending order, defaults to `false`
@return $this
Sort by a column