ApiGen\Parser\Elements\ElementSorter::sortConstantsByFqn PHP Method

sortConstantsByFqn() private method

private sortConstantsByFqn ( ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface[] $constantReflections ) : ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface[]
$constantReflections ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface[]
return ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface[]
    private function sortConstantsByFqn($constantReflections)
    {
        usort($constantReflections, function ($a, $b) {
            return $this->compareConstantsByFqn($a, $b);
        });
        return $constantReflections;
    }