public function disableSorting(): void
    {
        if ($this->request->getQueryParam("sort") !== null) {
            throw $this->exceptionFactory->createSortingUnsupportedException($this->request);
        }
    }
public function disableSorting(): void
    {
        if ($this->request->getQueryParam("sort") !== null) {
            throw $this->exceptionFactory->createSortingUnsupportedException($this->request);
        }
    }
public function disableSorting ( ) : void { if ( $ this -> request -> getQueryParam ( "sort" ) !== null ) { throw $ this -> exceptionFactory -> createSortingUnsupportedException ( $ this -> request ) ; } }
Disables sorting.

If the current request contains sorting criteria, it throws a SortingNotSupported exception.

@throws SortingUnsupported|JsonApiExceptionInterface
Disables sorting .