src/Resolver.php
protected function sortModules()
    {
        uasort($this->modules, function ($l, $r) {
            if ($l['precedence'] !== $r['precedence'])
                return $l['precedence'] - $r['precedence'];
            return strcmp($l['path'], $r['path']);
        });
        $this->sorted = true;
    }
protected function sortModules()
    {
        uasort($this->modules, function ($l, $r) {
            if ($l['precedence'] !== $r['precedence'])
                return $l['precedence'] - $r['precedence'];
            return strcmp($l['path'], $r['path']);
        });
        $this->sorted = true;
    }
Sort the modules on precedence