From 488a9090742cda053242919f28631ddd754a5840 Mon Sep 17 00:00:00 2001 From: vprokopchuk Date: Thu, 14 Jun 2018 11:24:35 +0200 Subject: [PATCH] Modules sort order in config.php is being inconsistent when no changes being made #16116 --- lib/internal/Magento/Framework/Module/ModuleList/Loader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/Module/ModuleList/Loader.php b/lib/internal/Magento/Framework/Module/ModuleList/Loader.php index bdfb77762b41c..e83517fde468b 100644 --- a/lib/internal/Magento/Framework/Module/ModuleList/Loader.php +++ b/lib/internal/Magento/Framework/Module/ModuleList/Loader.php @@ -133,9 +133,11 @@ private function sortBySequence($origList) ksort($origList); $expanded = []; foreach ($origList as $moduleName => $value) { + $sequence = $this->expandSequence($origList, $moduleName); + asort($sequence); $expanded[] = [ 'name' => $moduleName, - 'sequence' => $this->expandSequence($origList, $moduleName), + 'sequence' => $sequence, ]; }