src/Query/Tag/Order.php
protected function add_order( $col, $direction ) {
		if ( $direction !== null && ! in_array( $direction, array( self::ASC, self::DESC ) ) ) {
			throw new \InvalidArgumentException( "Invalid ORDER BY direction." );
		}


		$this->orders[ $col ] = $direction;
	}
protected function add_order( $col, $direction ) {
		if ( $direction !== null && ! in_array( $direction, array( self::ASC, self::DESC ) ) ) {
			throw new \InvalidArgumentException( "Invalid ORDER BY direction." );
		}


		$this->orders[ $col ] = $direction;
	}
Sanitize inputs and save state.

@since 1.0

@param string      $col
@param string|null $direction