framework/web/CDataProvider.php
public function getSort($className='CSort')
	{
		if($this->_sort===null)
		{
			$this->_sort=new $className;
			if(($id=$this->getId())!='')
				$this->_sort->sortVar=$id.'_sort';
		}
		return $this->_sort;
	}
public function getSort($className='CSort')
	{
		if($this->_sort===null)
		{
			$this->_sort=new $className;
			if(($id=$this->getId())!='')
				$this->_sort->sortVar=$id.'_sort';
		}
		return $this->_sort;
	}
public function getSort ( $ className = 'CSort' ) { if ( $ this -> _sort === null ) { $ this -> _sort = new $ className ; if ( ( $ id = $ this -> getId ( ) ) != '' ) $ this -> _sort -> sortVar = $ id . '_sort' ; } return $ this -> _sort ; }
Returns the sort object.
@param string $className the sorting object class name. Parameter is available since version 1.1.13.
@return CSort|false the sorting object. If this is false, it means the sorting is disabled.
Returns the sort object .