@param  string $column
@param  string $type
@return $this

Add a field to the order stack
488214
public function orderBy($column, $type = Order::ASC)
    {
        if (null !== $return = $this->validateMethodCall()) {
            return $return;
        }

        $this->orderBy[] = [$column, $type];

        return $this;
    }
978536
public function orderBy($column, $asc = true)
    {
        if ($asc) {
            $this->orders[] = $this->grammar->buildId($column) . ' ASC';
        } else {
            $this->orders[] = $this->grammar->buildId($column) . ' DESC';
        }

        return $this;
    }
465852
protected function addTranslatedColumnGetter(Column $column)
    {
        $objectBuilder = $this->builder->getNewObjectBuilder($this->behavior->getI18nTable());
        $comment = '';
        $functionStatement = '';
        if ($this->isDateType($column->getType())) {
            $objectBuilder->addTemporalAccessorComment($comment, $column);
            $objectBuilder->addTemporalAccessorOpen($functionStatement, $column);
        } else {
            $objectBuilder->addDefaultAccessorComment($comment, $column);
            $objectBuilder->addDefaultAccessorOpen($functionStatement, $column);
        }
        $comment = preg_replace('/^\t/m', '', $comment);
        $functionStatement = preg_replace('/^\t/m', '', $functionStatement);
        preg_match_all('/\$[a-z]+/i', $functionStatement, $params);

        return $this->behavior->renderTemplate('objectTranslatedColumnGetter', [
            'comment'           => $comment,
            'functionStatement' => $functionStatement,
            'columnPhpName'     => $column->getPhpName(),
            'params'            => implode(', ', $params[0]),
        ]);
    }
65404
public function createField($column, $attributes, $type = 'add')
    {
        $results = "\t\t\t" . '$table';
        foreach ($attributes as $key => $field) {
            $results .= $this->{"{$type}Column"}($key, $field, $column);
        }

        return $results .= ';' . PHP_EOL;
    }
934332
public function column(string $column = null): self
    {
        if (! is_null($column)) {
            $this->column = $column;
        }

        if ($this->locale && ! is_null($column)) {
            $locale = '.'.app()->getLocale().'.';
            $this->column = preg_replace('/'.preg_quote('.', '/').'/', $locale, $column);
        }

        return $this;
    }
60388
final public function createColumnIfNotExists(Column $column): Table
    {
        if (!$this->hasColumn($column::getName())) {
            $this->createColumn($column);
        }

        return $this;
    }
372978
public function order($columns)
  {
    if ( is_null($this->order) ){
      $this->order = new Element('ORDER BY', $columns);
    }
    else {
      $this->order->append($columns);
    }
    
    return $this;
  }
1097615
public function createNew($type = OrderTypes::TYPE_ORDER)
    {
        $order = parent::createNew();
        $order->setType($type);

        return $order;
    }
487158
public function order($order, $type = 'DESC')
    {

        $this->string['order'] .= $this->useBuilder('order')
            ->order($order, $type);

        return $this;
    }
1022913
public function orderBy($column, $orderType = 'ASC')
    {
        if (empty($column) || is_null($column)) {
            throw new \Exception('Empty parameter given to order by clause');
        }
        $this->orderType = $orderType;

        if (is_array($column)) {
            $this->columnName = $this->extractArrayAttributes($column);

            return $this;
        }

        if (is_null($this->columnName)) {
            $this->columnName = $column;
        }

        return $this;
    }
428482
public function orderBy(string $column, string $type = null)
    {
        $instance = $this->orderByStrategyInstance();

        $instance->orderByStrategy()->orderBy($column, $type);

        return $instance;
    }
915808
public function dropColumn(string $column): AbstractTable
    {
        if (empty($schema = $this->current->findColumn($column))) {
            throw new SchemaException("Undefined column '{$column}' in '{$this->getName()}'");
        }

        //Dropping column from current schema
        $this->current->forgetColumn($schema);

        return $this;
    }
1251671
public function addColumn($column)
    {
        if ($column instanceof Element) {
            if ($column->entity->getEntityName() === '') {
                $column->entity->setEntityName('col-' . ($this->childNodes->count() + 1));
            }

            $this->pushColumnChildNodes($column);
        }

        return $this;
    }
1014721
public function bindColumn($column, &$param, $type = PDO::PARAM_STR, $maxlen = -1, $driverdata = null) {
		$type = $this->removeBitFlag($$type, PDO::PARAM_INPUT_OUTPUT);
		$ociParamType = $this->pdo2OciParamConst($type);
		// LOBs
		if ($lob_desc = $this->oci_lob_desc($ociParamType)) {
			$this->_lobs[$this->_lobsCount]['type'] = $ociParamType;
			$this->_lobs[$this->_lobsCount]['lob'] = @oci_new_descriptor($this->ociPdoAdapter->getOciConnection(), $lob_desc);
			$res = $this->_lobs[$this->_lobsCount]['lob'];
			$this->checkError($res);
			$res = @oci_define_by_name($this->stmt, $column, $this->_lobs[$this->_lobsCount]['lob'], $ociParamType);
			$this->checkError($res);
			$this->_lobs[$this->_lobsCount]['var'] = $param;
			$this->_lobs[$this->_lobsCount]['input'] = false;

			$this->_lobsCount++;
		}
		else {
			$res = @oci_define_by_name($this->stmt, $column, $param, $ociParamType);
			$this->checkError($res);
		}

		return $res;
	}
133159
public function groupBy($column)
    {
        if (Helpers\Validate::table($this->name)->field($column))
        {
            $this->resetKeys             = 0;
            $this->pending[__FUNCTION__] = $column;
        }

        return $this;
    }
1053481
public static function modifyColumn(
        $table,
        $column,
        $type = 'text',
        $signed = true,
        $allowNull = true,
        $default = null,
        $position = null,
        $comment = ''
    ) {
        return static::alterColumn(
            'MODIFY',
            $table,
            $column,
            $type,
            $signed,
            $allowNull,
            $default,
            $position,
            $comment
        );
    }
349549
public function setSortColumn($column)
    {
        $this->sortColumn = null;

        $found = false;
        foreach ($this->getColumns() as $id => $params) {
            if ($id == $column) {
                $found = ($params['sortable'] === true);
                break;
            }
        }

        if ($found)
            $this->sortColumn = $column;

        return $this;
    }