private function processSortClauses(array $sortClausesArray, ParsingDispatcher $parsingDispatcher)
    {
        $sortClauses = [];
        foreach ($sortClausesArray as $sortClauseName => $sortClauseData) {
            if (!is_array($sortClauseData) || !isset($sortClauseData[0])) {
                $sortClauseData = [$sortClauseData];
            }

            foreach ($sortClauseData as $data) {
                $sortClauses[] = $this->dispatchSortClause($sortClauseName, $data, $parsingDispatcher);
            }
        }

        return $sortClauses;
    }
private function processSortClauses(array $sortClausesArray, ParsingDispatcher $parsingDispatcher)
    {
        $sortClauses = [];
        foreach ($sortClausesArray as $sortClauseName => $sortClauseData) {
            if (!is_array($sortClauseData) || !isset($sortClauseData[0])) {
                $sortClauseData = [$sortClauseData];
            }

            foreach ($sortClauseData as $data) {
                $sortClauses[] = $this->dispatchSortClause($sortClauseName, $data, $parsingDispatcher);
            }
        }

        return $sortClauses;
    }
private function processSortClauses ( array $ sortClausesArray , ParsingDispatcher $ parsingDispatcher ) { $ sortClauses = [ ] ; foreach ( $ sortClausesArray as $ sortClauseName => $ sortClauseData ) { if ( ! is_array ( $ sortClauseData ) || ! isset ( $ sortClauseData [ 0 ] ) ) { $ sortClauseData = [ $ sortClauseData ] ; } foreach ( $ sortClauseData as $ data ) { $ sortClauses [ ] = $ this -> dispatchSortClause ( $ sortClauseName , $ data , $ parsingDispatcher ) ; } } return $ sortClauses ; }
Handles SortClause data.

@param array $sortClausesArray
@param \eZ\Publish\Core\REST\Common\Input\ParsingDispatcher $parsingDispatcher

@return array
Handles SortClause data .