protected function buildSortParameter(array $sorts)
    {
        $sorting = [];
        foreach ($sorts as $sort) {
            $parts = explode(' ', trim($sort), 2);

            if (empty($parts)) {
                continue;
            }

            if (1 === \count($parts)) {
                $sorting[$parts[0]] = true;
            } else {
                $sorting[$parts[0]] = $parts[1];
            }
        }

        return $sorting;
    }
protected function buildSortParameter(array $sorts)
    {
        $sorting = [];
        foreach ($sorts as $sort) {
            $parts = explode(' ', trim($sort), 2);

            if (empty($parts)) {
                continue;
            }

            if (1 === \count($parts)) {
                $sorting[$parts[0]] = true;
            } else {
                $sorting[$parts[0]] = $parts[1];
            }
        }

        return $sorting;
    }
protected function buildSortParameter ( array $ sorts ) { $ sorting = [ ] ; foreach ( $ sorts as $ sort ) { $ parts = explode ( ' ' , trim ( $ sort ) , 2 ) ; if ( empty ( $ parts ) ) { continue ; } if ( 1 === \ count ( $ parts ) ) { $ sorting [ $ parts [ 0 ] ] = true ; } else { $ sorting [ $ parts [ 0 ] ] = $ parts [ 1 ] ; } } return $ sorting ; }
Builds the "sort" parameter as required bu the Rokka client.

@param array $sorts

@return array
Builds the sort parameter as required bu the Rokka client .