From 2bf4121694f010fab4b48d2e34b6c055116cb1ba Mon Sep 17 00:00:00 2001 From: catch Date: Mon, 16 Aug 2021 15:34:03 +0100 Subject: [PATCH] Issue #3228237 by DamienMcKenna, quietone: Always sort tables in db-tools.php dump (cherry picked from commit 2eebc00274233f43bfae2c8fccde09753a26cab8) --- core/lib/Drupal/Core/Command/DbDumpCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/lib/Drupal/Core/Command/DbDumpCommand.php b/core/lib/Drupal/Core/Command/DbDumpCommand.php index ac544d068bd..8e838e0606f 100644 --- a/core/lib/Drupal/Core/Command/DbDumpCommand.php +++ b/core/lib/Drupal/Core/Command/DbDumpCommand.php @@ -122,6 +122,9 @@ class DbDumpCommand extends DbCommandBase { } } + // Keep the table names sorted alphabetically. + asort($tables); + return $tables; }