diff --git a/wire/core/WireArray.php b/wire/core/WireArray.php index 5ab710f9..5dbbf3d5 100644 --- a/wire/core/WireArray.php +++ b/wire/core/WireArray.php @@ -977,7 +977,7 @@ class WireArray extends Wire implements \IteratorAggregate, \ArrayAccess, \Count if(!$this->isValidItem($item)) { if($item instanceof WireArray) { - foreach($item as $i) $this->prepend($i); + foreach(array_reverse($item->getArray()) as $i) $this->prepend($i); return $this; } else { throw new WireException("Item prepend to " . get_class($this) . " is not an allowed type");