src/Viserio/Component/Events/DataCollector/TraceableEventManager.php
private function sortListenersByPriority(array $a, array $b): int
    {
        if (\is_int($a['priority']) && ! \is_int($b['priority'])) {
            return 1;
        }

        if (! \is_int($a['priority']) && \is_int($b['priority'])) {
            return -1;
        }

        if ($a['priority'] === $b['priority']) {
            return 0;
        }

        if ($a['priority'] > $b['priority']) {
            return -1;
        }

        return 1;
    }
private function sortListenersByPriority(array $a, array $b): int
    {
        if (\is_int($a['priority']) && ! \is_int($b['priority'])) {
            return 1;
        }

        if (! \is_int($a['priority']) && \is_int($b['priority'])) {
            return -1;
        }

        if ($a['priority'] === $b['priority']) {
            return 0;
        }

        if ($a['priority'] > $b['priority']) {
            return -1;
        }

        return 1;
    }
@param array $a
@param array $b

@return int