# How to order a list of point in dynamo by their position (closest)

**URL:** <https://forum.dynamobim.com/t/how-to-order-a-list-of-point-in-dynamo-by-their-position-closest/51459>\
**Category:** Lists-Logic\
**Tags:** dynamo, closestpoint\
**Created:** [June 5, 2020, 4:36pm UTC](https://forum.dynamobim.com/t/how-to-order-a-list-of-point-in-dynamo-by-their-position-closest/51459 "2020-06-05T16:36:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcapoferri](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mcapoferri](https://forum.dynamobim.com/u/mcapoferri)\
**Post date:** [June 5, 2020, 4:36pm UTC](https://forum.dynamobim.com/t/how-to-order-a-list-of-point-in-dynamo-by-their-position-closest/51459/1 "2020-06-05T16:36:41Z")

</div>

Hi All,  
Starting from a Mesh geometry (pipe) I find a list of vertex position and I want to order them in groups of 8 determining by their positions.

 ![sublist by positionJPG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d9b9dff7a69b1245bbc58f3ee95c3d012e4bda4c.jpeg)

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [June 5, 2020, 5:14pm UTC](https://forum.dynamobim.com/t/how-to-order-a-list-of-point-in-dynamo-by-their-position-closest/51459/2 "2020-06-05T17:14:21Z")

</div>

This might get you halfway.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/99d8562133ea79ce7ce96bb710e04e55f2bab22f.png)

---

<div class="post-metadata">

**Author:** ![abuscema\_3](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@abuscema\_3](https://forum.dynamobim.com/u/abuscema_3)\
**Post date:** [June 8, 2020, 10:20am UTC](https://forum.dynamobim.com/t/how-to-order-a-list-of-point-in-dynamo-by-their-position-closest/51459/3 "2020-06-08T10:20:56Z")

</div>

Hi Marcel,  
in this way my points are grouped in this order: AA BB AB AB AB AB AB AB, while I wish they were grouped in 2 groups of 8.  
I tried to do the same thing with the y and z coordinates but the result doesn’t change.
