diff --git a/src/Importer/Importer.php b/src/Importer/Importer.php index 85826a863..c42b42bf7 100644 --- a/src/Importer/Importer.php +++ b/src/Importer/Importer.php @@ -240,7 +240,7 @@ protected static function after(array $after) { foreach ($after as $key => $value) { if (is_array($value)) { - foreach ($value as $v) { + foreach (array_reverse($value) as $v) { after($key, $v); } } else { @@ -253,7 +253,7 @@ protected static function before(array $before) { foreach ($before as $key => $value) { if (is_array($value)) { - foreach ($value as $v) { + foreach (array_reverse($value) as $v) { before($key, $v); } } else {