private function getPossibleValues(string $className): array
    {
        $metadata = $this->entityManager->getClassMetadata($className);
        $standard = array_values($metadata->fieldNames);
        $custom = $this->getCustomSortingNames($className);

        return array_merge($standard, $custom);
    }
private function getPossibleValues(string $className): array
    {
        $metadata = $this->entityManager->getClassMetadata($className);
        $standard = array_values($metadata->fieldNames);
        $custom = $this->getCustomSortingNames($className);

        return array_merge($standard, $custom);
    }
private function getPossibleValues ( string $ className ) : array { $ metadata = $ this -> entityManager -> getClassMetadata ( $ className ) ; $ standard = array_values ( $ metadata -> fieldNames ) ; $ custom = $ this -> getCustomSortingNames ( $ className ) ; return array_merge ( $ standard , $ custom ) ; }
Get names for all possible sorting, including the custom one

@param string $className

@return string[]
Get names for all possible sorting including the custom one