diff -u b/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php --- b/core/lib/Drupal/Core/Config/ConfigImporter.php +++ b/core/lib/Drupal/Core/Config/ConfigImporter.php @@ -383,10 +383,10 @@ // 'text' => -1, // ); // will result in the following sort order: - // 0 options - // 1 text - // 2 0 ban - // 2 1 actions + // -2 options + // -1 text + // 0 0 ban + // 0 1 actions // @todo Move this sorting functionality to the extension system. array_multisort(array_values($module_list), SORT_ASC, array_keys($module_list), SORT_DESC, $module_list); $uninstall = array_intersect(array_keys($module_list), $uninstall); @@ -394,7 +394,7 @@ // Determine which modules to install. $install = array_diff(array_keys($new_extensions['module']), array_keys($current_extensions['module'])); // Ensure that installed modules are sorted in exactly the reverse order - // (with dependencies installed first, and modules of the same name sorted + // (with dependencies installed first, and modules of the same weight sorted // in alphabetical order). $module_list = array_reverse($module_list); $install = array_intersect(array_keys($module_list), $install);