# How to sort an array alphabetically?

**URL:** <https://forums.unrealengine.com/t/how-to-sort-an-array-alphabetically/350158>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 10, 2016, 4:30pm UTC](https://forums.unrealengine.com/t/how-to-sort-an-array-alphabetically/350158 "2016-03-10T16:30:21Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Piires](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piires/32/1214196_2.png) [@Piires](https://forums.unrealengine.com/u/Piires)\
**Post date:** [January 17, 2024, 5:25pm UTC](https://forums.unrealengine.com/t/how-to-sort-an-array-alphabetically/350158/9 "2024-01-17T17:25:38Z")

</div>

I know this post is from years ago but… recently I was wanting to put together a function like this and here’s a tip for those who doubt whether it’s possible to create a lot of things using just blueprints:

 ![Sort array alphabetically](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/d/90d88f16c89144c94d9cb92fb642b531f7812cd6.png)

But as always, this function can be always better.

Someone once told me: “Never listen to people telling you that it’s not possible or that it’s too complicated to do something in blueprints.” There is ALWAYS another alternative, a WORKAROUND and sometimes even easier. Whether you like it or not, blueprints are C++, however, there is this misunderstanding among people. But yes… if you are going to do something more astronomical like RED DEAD REDEMPTION or GTA, C++ is the best alternative.

I used this study by @Supremative as a basis to create my alphabetical sort function: [Sorting algorithms in Blueprints](https://forums.unrealengine.com/t/sorting-algorithms-in-blueprints/1135992)

I’ll leave it open here with one of my solutions.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-sort-an-array-alphabetically/350158)._
