# BluePrint Array Sort

**URL:** <https://forums.unrealengine.com/t/blueprint-array-sort/437885>\
**Category:** Blueprint\
**Tags:** actor-blueprint, reference-blueprint, unreal-engine, Blueprint, question\
**Created:** [November 18, 2018, 7:22pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885 "2018-11-18T19:22:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amkzul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amkzul](https://forums.unrealengine.com/u/Amkzul)\
**Post date:** [November 18, 2018, 7:22pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/1 "2018-11-18T19:22:56Z")

</div>

Hello! I currently have an array that is used to create patrol points for my AI. It worked up until I moved a patrol point and now the order my AI walks between the points has moved from Patrol Point 5, Patrol Point 6, Patrol Point 7 to Patrol Point 7, Patrol Point 5, Patrol Point 6. Naturally this is an issue.

My question is what would I have to do to sort these actors to use the points in ascending order?

 ![259776-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/b/a8bf22851ca95d3b6434bffd6aae705d2e075b22.png)

---

<div class="post-metadata">

**Author:** ![SertacOgan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sertacogan/32/970490_2.png) [@SertacOgan](https://forums.unrealengine.com/u/SertacOgan)\
**Post date:** [November 18, 2018, 7:28pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/2 "2018-11-18T19:28:05Z")

</div>

The low-entry extended standard library has a sort array by comparator function, which is what you’d need here.

[[LE Extended Standard Library in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/low-entry-extended-standard-library)][1]

![96652-lesort.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/7/9e7488e17a5b3d15b4d59d8ac6ee22dd4bccf63d.png)

---

<div class="post-metadata">

**Author:** ![Amkzul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amkzul](https://forums.unrealengine.com/u/Amkzul)\
**Post date:** [November 18, 2018, 7:39pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/3 "2018-11-18T19:39:56Z")

</div>

Awesome thank you for pointing this out. Ill give it a try.

---

<div class="post-metadata">

**Author:** ![Amkzul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amkzul](https://forums.unrealengine.com/u/Amkzul)\
**Post date:** [November 18, 2018, 7:50pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/4 "2018-11-18T19:50:35Z")

</div>

Ran into a bit of a snag any clue what im doing wrong?

![259777-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/3/533d7ae292423bb732bc5dc0355a71cc36846a0e.png)

---

<div class="post-metadata">

**Author:** ![SertacOgan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sertacogan/32/970490_2.png) [@SertacOgan](https://forums.unrealengine.com/u/SertacOgan)\
**Post date:** [November 18, 2018, 8:08pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/5 "2018-11-18T20:08:34Z")

</div>

![259790-howto.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/0/b608653098830441f528d142b7f7da49842084b9.png)

---

<div class="post-metadata">

**Author:** ![Amkzul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amkzul](https://forums.unrealengine.com/u/Amkzul)\
**Post date:** [November 18, 2018, 8:09pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/6 "2018-11-18T20:09:27Z")

</div>

Got it working I had the type as my actor not object reference. Thanks again!

---

<div class="post-metadata">

**Author:** ![SertacOgan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sertacogan/32/970490_2.png) [@SertacOgan](https://forums.unrealengine.com/u/SertacOgan)\
**Post date:** [November 18, 2018, 8:11pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/7 "2018-11-18T20:11:08Z")

</div>

Glad to hear! If you problem solve please check solved button for another people.

---

<div class="post-metadata">

**Author:** ![Tj0mmas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tj0mmas](https://forums.unrealengine.com/u/Tj0mmas)\
**Post date:** [August 13, 2025, 7:33pm UTC](https://forums.unrealengine.com/t/blueprint-array-sort/437885/8 "2025-08-13T19:33:18Z")

</div>

I’m using unreal 5.5 and this sort algo from LEextended is working in editor/game but not in built package!  
Any idea?
