Flarum\Api\Controller\AbstractSerializeController::extractSort PHP Method

extractSort() protected method

protected extractSort ( Psr\Http\Message\ServerRequestInterface $request ) : array | null
$request Psr\Http\Message\ServerRequestInterface
return array | null
    protected function extractSort(ServerRequestInterface $request)
    {
        return $this->buildParameters($request)->getSort($this->sortFields) ?: $this->sort;
    }