I found a way to make the relational attribute work changing the getDirections function, but i know it's not the best solution.
Could you enable this feature?
I send my CSort::getDirections method implementation
public function getDirections() { if($this->_directions===null) { $this->_directions=array(); if(isset($_GET[$this->sortVar])) { $attributes=explode($this->separators[0],$_GET[$this->sortVar]); foreach($attributes as $attribute) { if(($pos=strrpos($attribute,$this->separators[1]))!==false && $this->validateAttribute($attribute)===false) { $descending=substr($attribute,$pos+1)==='desc'; $attribute=substr($attribute,0,$pos); } else $descending=false; if(($attribute=$this->validateAttribute($attribute))!==false) $this->_directions[$attribute]=$descending; } if(!$this->multiSort) { foreach($this->_directions as $attribute=>$descending) return $this->_directions=array($attribute=>$descending); } } } return $this->_directions; }
The main problem is the dot used to add the 'desc' option with the dot used for subitem.