protected function getSortingPart($index)
    {
        $sorting = $this->getSorting();
        if ($sorting === '') {
            return null;
        }

        $parts = explode(' ', $sorting);
        return isset($parts[$index]) ? $parts[$index] : null;
    }
protected function getSortingPart($index)
    {
        $sorting = $this->getSorting();
        if ($sorting === '') {
            return null;
        }

        $parts = explode(' ', $sorting);
        return isset($parts[$index]) ? $parts[$index] : null;
    }
protected function getSortingPart ( $ index ) { $ sorting = $ this -> getSorting ( ) ; if ( $ sorting === '' ) { return null ; } $ parts = explode ( ' ' , $ sorting ) ; return isset ( $ parts [ $ index ] ) ? $ parts [ $ index ] : null ; }
Helper function to get the sorting configuration name or direction.

@param int $index
@return string
Helper function to get the sorting configuration name or direction .