src/Fixer/Import/OrderedImportsFixer.php
private function sortAlphabetically(array $first, array $second)
    {
        // Replace backslashes by spaces before sorting for correct sort order
        $firstNamespace = str_replace('\\', ' ', $this->prepareNamespace($first['namespace']));
        $secondNamespace = str_replace('\\', ' ', $this->prepareNamespace($second['namespace']));

        return strcasecmp($firstNamespace, $secondNamespace);
    }
private function sortAlphabetically(array $first, array $second)
    {
        // Replace backslashes by spaces before sorting for correct sort order
        $firstNamespace = str_replace('\\', ' ', $this->prepareNamespace($first['namespace']));
        $secondNamespace = str_replace('\\', ' ', $this->prepareNamespace($second['namespace']));

        return strcasecmp($firstNamespace, $secondNamespace);
    }
This method is used for sorting the uses in a namespace.

@param array<string, bool|int|string> $first
@param array<string, bool|int|string> $second

@return int

@internal