public function SetOrder($property,$desc = false)
	{
		if (!$property)
		{
			// no property was specified.
			return;
		}
		
		$this->_order_delim = ($this->_set_order) ? "," : "";
		
		if($property == '?')
		{
			$this->_set_order = "RAND()" . $this->_order_delim . $this->_set_order;
		}
		else
		{
			$colname = $this->GetFieldFromProp($property);
			$this->_set_order .= $this->_order_delim . $colname . ($desc ? " desc" : "");	
		}

	}
public function SetOrder($property,$desc = false)
	{
		if (!$property)
		{
			// no property was specified.
			return;
		}
		
		$this->_order_delim = ($this->_set_order) ? "," : "";
		
		if($property == '?')
		{
			$this->_set_order = "RAND()" . $this->_order_delim . $this->_set_order;
		}
		else
		{
			$colname = $this->GetFieldFromProp($property);
			$this->_set_order .= $this->_order_delim . $colname . ($desc ? " desc" : "");	
		}

	}
public function SetOrder ( $ property , $ desc = false ) { if ( ! $ property ) { // no property was specified.
 return ; } $ this -> _order_delim = ( $ this -> _set_order ) ? "," : "" ; if ( $ property == '?' ) { $ this -> _set_order = "RAND()" . $ this -> _order_delim . $ this -> _set_order ; } else { $ colname = $ this -> GetFieldFromProp ( $ property ) ; $ this -> _set_order .= $ this -> _order_delim . $ colname . ( $ desc ? " desc" : "" ) ; } }
Adds an object property to the order by clause.  If any sorting needs to be done
on foreign tables, then for the moment, you need to override this method and
handle it manually.  You can call this method repeatedly to add more than
one property for sorting.

@param string $property the name of the object property (or '?' for random order)
@param bool $desc (optional) set to true to sort in descending order (default false)
Adds an object property to the order by clause . If any sorting needs to be done on foreign tables then for the moment you need to override this method and handle it manually . You can call this method repeatedly to add more than one property for sorting .