# Ways to rearrange points

**URL:** <https://forums.unrealengine.com/t/ways-to-rearrange-points/1250470>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 4, 2023, 9:58am UTC](https://forums.unrealengine.com/t/ways-to-rearrange-points/1250470 "2023-08-04T09:58:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![9NINE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9NINE](https://forums.unrealengine.com/u/9NINE)\
**Post date:** [August 4, 2023, 9:58am UTC](https://forums.unrealengine.com/t/ways-to-rearrange-points/1250470/1 "2023-08-04T09:58:19Z")

</div>

Hello,  
are there ways to rearrange a list of points in pcg for example in an ascending order based on their position?

---

<div class="post-metadata">

**Author:** ![Nebukam](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nebukam/32/767411_2.png) [@Nebukam](https://forums.unrealengine.com/u/Nebukam)\
**Post date:** [October 24, 2023, 3:27am UTC](https://forums.unrealengine.com/t/ways-to-rearrange-points/1250470/2 "2023-10-24T03:27:08Z")

</div>

Ever found the solution to this one?  
I’ve come across [this github library](https://github.com/spood/PCGPathfinding) that does pathfinding inside a group of points so it’s definitely doable – however the code is good for editor and 5.2 only, and is too expensive to run at runtime _(from my understanding it duplicates the point data in memory to another format that stores neighboring connections based on distance, does the calculation on that, and then re-output an ordered list of points in blueprints)_
