private function queryAddSortByParameter(array $value): string
    {
        if (!\in_array($value[0], $this->fieldsSortable, true)) {
            throw new \InvalidArgumentException(\sprintf(
                'Parameter %s is not available for sorting in repository %s',
                $value[0],
                $this->name
            ));
        }

        return $value[0].':'.$value[1];
    }
private function queryAddSortByParameter(array $value): string
    {
        if (!\in_array($value[0], $this->fieldsSortable, true)) {
            throw new \InvalidArgumentException(\sprintf(
                'Parameter %s is not available for sorting in repository %s',
                $value[0],
                $this->name
            ));
        }

        return $value[0].':'.$value[1];
    }
private function queryAddSortByParameter ( array $ value ) : string { if ( ! \ in_array ( $ value [ 0 ] , $ this -> fieldsSortable , true ) ) { throw new \ InvalidArgumentException ( \ sprintf ( 'Parameter %s is not available for sorting in repository %s' , $ value [ 0 ] , $ this -> name ) ) ; } return $ value [ 0 ] . ':' . $ value [ 1 ] ; }
Checks if the field is sortable and creates the URL string.

@param array $value

@return string
Checks if the field is sortable and creates the URL string .