Attila/core/Model.php
public function findOrderBy(array $aArguments)
    {
    	$sEntityNamespace = preg_replace('/^(.*)Model\\\\.+$/', '$1Entity\\', get_called_class());
    	
    	$aResults = $this->orm
    					 ->select(array('*'))
    					 ->from($this->_sTableName)
    					 ->orderBy($aArguments)
    					 ->load(false, $sEntityNamespace);
    	
    	if ($this->_isFilter()) {
    	     
    	    foreach ($aResults as $iKey => $oValue) {
    	         
    	        $aResults[$iKey] = $this->_applyFilter($oValue);
    	    }
    	}

    	return $aResults;
    }
public function findOrderBy(array $aArguments)
    {
    	$sEntityNamespace = preg_replace('/^(.*)Model\\\\.+$/', '$1Entity\\', get_called_class());
    	
    	$aResults = $this->orm
    					 ->select(array('*'))
    					 ->from($this->_sTableName)
    					 ->orderBy($aArguments)
    					 ->load(false, $sEntityNamespace);
    	
    	if ($this->_isFilter()) {
    	     
    	    foreach ($aResults as $iKey => $oValue) {
    	         
    	        $aResults[$iKey] = $this->_applyFilter($oValue);
    	    }
    	}

    	return $aResults;
    }
public function findOrderBy ( array $ aArguments ) { $ sEntityNamespace = preg_replace ( '/^(.*)Model\\\\.+$/' , '$1Entity\\' , get_called_class ( ) ) ; $ aResults = $ this -> orm -> select ( array ( '*' ) ) -> from ( $ this -> _sTableName ) -> orderBy ( $ aArguments ) -> load ( false , $ sEntityNamespace ) ; if ( $ this -> _isFilter ( ) ) { foreach ( $ aResults as $ iKey => $ oValue ) { $ aResults [ $ iKey ] = $ this -> _applyFilter ( $ oValue ) ; } } return $ aResults ; }
return list of entities that they are found with the arguments

@access public
@param  array $aArguments
@return array

@example	$oModel->findOrderBy(array('id DESC');
return list of entities that they are found with the arguments