SystemSortThemesRector

Replace deprecated system_sort_themes() string callback with an inline static closure

-uasort($theme_groups['installed'], 'system_sort_themes');
+uasort($theme_groups['installed'], static function ($a, $b) {
+    if ($a->is_default) {
+        return -1;
+    }
+    if ($b->is_default) {
+        return 1;
+    }
+    return strcasecmp($a->info['name'], $b->info['name']);
+});

Configure your rector.php:

<?php

use DrupalRector\Drupal11\Rector\Deprecation\SystemSortThemesRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        SystemSortThemesRector::class,
    ]);

Other rules in the drupal/core 11.4 set