framework/web/CArrayDataProvider.php
protected function getSortingFieldValue($data, $fields)
	{
		if(is_object($data))
		{
			foreach($fields as $field)
				$data=isset($data->$field) ? $data->$field : null;
		}
		else
		{
			foreach($fields as $field)
				$data=isset($data[$field]) ? $data[$field] : null;
		}
		return $this->caseSensitiveSort ? $data : mb_strtolower($data,Yii::app()->charset);
	}
protected function getSortingFieldValue($data, $fields)
	{
		if(is_object($data))
		{
			foreach($fields as $field)
				$data=isset($data->$field) ? $data->$field : null;
		}
		else
		{
			foreach($fields as $field)
				$data=isset($data[$field]) ? $data[$field] : null;
		}
		return $this->caseSensitiveSort ? $data : mb_strtolower($data,Yii::app()->charset);
	}
protected function getSortingFieldValue ( $ data , $ fields ) { if ( is_object ( $ data ) ) { foreach ( $ fields as $ field ) $ data = isset ( $ data -> $ field ) ? $ data -> $ field : null ; } else { foreach ( $ fields as $ field ) $ data = isset ( $ data [ $ field ] ) ? $ data [ $ field ] : null ; } return $ this -> caseSensitiveSort ? $ data : mb_strtolower ( $ data , Yii :: app ( ) -> charset ) ; }
Get field for sorting, using dot like delimiter in query.
@param mixed $data array or object
@param array $fields sorting fields in $data
@return mixed $data sorting field value
Get field for sorting using dot like delimiter in query .