original_string: protected function _prefixOrderProperty() {
  		if (is_string($this->order)) {
  			$this->order = $this->_prefixAlias($this->order);
  		}
  		if (is_array($this->order)) {
  			foreach ($this->order as $key => $value) {
  				if (is_numeric($key)) {
  					$this->order[$key] = $this->_prefixAlias($value);
  				} else {
  					$newKey = $this->_prefixAlias($key);
  					$this->order[$newKey] = $value;
  					if ($newKey !== $key) {
  						unset($this->order[$key]);
  					}
  				}
  			}
  		}
  	}
code: protected function _prefixOrderProperty() {
  		if (is_string($this->order)) {
  			$this->order = $this->_prefixAlias($this->order);
  		}
  		if (is_array($this->order)) {
  			foreach ($this->order as $key => $value) {
  				if (is_numeric($key)) {
  					$this->order[$key] = $this->_prefixAlias($value);
  				} else {
  					$newKey = $this->_prefixAlias($key);
  					$this->order[$newKey] = $value;
  					if ($newKey !== $key) {
  						unset($this->order[$key]);
  					}
  				}
  			}
  		}
  	}
code_tokens: protected function _prefixOrderProperty ( ) { if ( is_string ( $ this -> order ) ) { $ this -> order = $ this -> _prefixAlias ( $ this -> order ) ; } if ( is_array ( $ this -> order ) ) { foreach ( $ this -> order as $ key => $ value ) { if ( is_numeric ( $ key ) ) { $ this -> order [ $ key ] = $ this -> _prefixAlias ( $ value ) ; } else { $ newKey = $ this -> _prefixAlias ( $ key ) ; $ this -> order [ $ newKey ] = $ value ; if ( $ newKey !== $ key ) { unset ( $ this -> order [ $ key ] ) ; } } } } }
docstring: Prefixes the order property with the actual alias if its a string or array.
  
  The core fails on using the proper prefix when building the query with two
  different tables.
  
  @return void
docstring_tokens: Prefixes the order property with the actual alias if its a string or array .