# Do Array's Add and AddUnique change order?

**URL:** <https://forums.unrealengine.com/t/do-arrays-add-and-addunique-change-order/685971>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, question, Blueprint\
**Created:** [November 7, 2022, 4:27pm UTC](https://forums.unrealengine.com/t/do-arrays-add-and-addunique-change-order/685971 "2022-11-07T16:27:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [November 7, 2022, 4:27pm UTC](https://forums.unrealengine.com/t/do-arrays-add-and-addunique-change-order/685971/1 "2022-11-07T16:27:44Z")

</div>

Not sure about implementation under the hood of the arrays, so… Can Add() and/or AddUnique() change the order of elements in array? Like if we reach some magic number and memory needs to be reshuffled, etc. If it’s an actual array then it shouldn’t but maybe it’s a dynamic array or a mix of array/list… Can’t find any info on that anywhere, documentation has no info…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 6:06pm UTC](https://forums.unrealengine.com/t/do-arrays-add-and-addunique-change-order/685971/2 "2022-11-07T18:06:55Z")

</div>

I assume they don’t.

If you want to be sure, just install VS and double click the node… 🙂

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [November 7, 2022, 7:42pm UTC](https://forums.unrealengine.com/t/do-arrays-add-and-addunique-change-order/685971/3 "2022-11-07T19:42:17Z")

</div>

Add & Add Unique do not.

Remove does via shifting.  
e.g. Index 0-99, remove 0 and the array shifts. 1 → 0, 2 → 1 etc.
