# Sort lists by proximity

**URL:** <https://forum.dynamobim.com/t/sort-lists-by-proximity/23031>\
**Category:** Revit\
**Created:** [June 22, 2018, 1:36pm UTC](https://forum.dynamobim.com/t/sort-lists-by-proximity/23031 "2018-06-22T13:36:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [June 22, 2018, 2:16pm UTC](https://forum.dynamobim.com/t/sort-lists-by-proximity/23031/3 "2018-06-22T14:16:30Z")

</div>

Hi Nick,  
I think I got what I needed from this post:

> [@Closest point for given point sorting loop](https://forum.dynamobim.com/t/closest-point-for-given-point-sorting-loop/12600):
>
> Hi dynamo users. I stucked with idea of loop that can sort the points by distance but not from just one point: -\>Starting with starting point and point collection,-\> then find closest point to the starting then take the found one and repeat the search of closest one. Then sort it in found order. I tried with loop while node after I created custom node that giving the closest point and rest of collection. Ty for help!.

I need to copy z coordinates from a list to another list based on the shortest distance.

 ![c2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/89d39a8eb1b86e52dd03fc3e20880abf6d3412f8.JPG)

---

_[View the full topic](https://forum.dynamobim.com/t/sort-lists-by-proximity/23031)._
