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;
    }