src/Query/FluentQuery.php
public function order_by( $column, $direction = null ) {

		$column = $this->prepare_column( $column );

		if ( is_null( $this->order ) ) {
			$this->order = new Order( $column, $direction );
		} else {
			$this->order->then( $column, $direction );
		}

		return $this;
	}
public function order_by( $column, $direction = null ) {

		$column = $this->prepare_column( $column );

		if ( is_null( $this->order ) ) {
			$this->order = new Order( $column, $direction );
		} else {
			$this->order->then( $column, $direction );
		}

		return $this;
	}
Order the results by a given column.

Can be called multiple times to add additional order by clauses.

@since 2.0

@param string $column
@param string $direction

@return $this

@throws \IronBound\DB\Exception\InvalidColumnException