Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array by values using a user-defined comparison function
<?php usort(array &$array, callable $callback): true
<?php             ->in($parameters['directory'])

            ->getIterator());



        usort($filesOrDirectories, fn (SplFileInfo $a, SplFileInfo $b): int => $a->getRealPath() <=> $b->getRealPath());



        $issues = [];
<?php             ->name('*.php')

            ->getIterator());



        usort($sourceFiles, fn (SplFileInfo $a, SplFileInfo $b): int => $a->getRealPath() <=> $b->getRealPath());



        $issues = [];