# Revisiting Spiral Sorting of Points

**URL:** <https://forum.dynamobim.com/t/revisiting-spiral-sorting-of-points/16311>\
**Category:** Lists-Logic\
**Created:** [November 8, 2017, 2:58am UTC](https://forum.dynamobim.com/t/revisiting-spiral-sorting-of-points/16311 "2017-11-08T02:58:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [November 8, 2017, 2:58am UTC](https://forum.dynamobim.com/t/revisiting-spiral-sorting-of-points/16311/1 "2017-11-08T02:58:21Z")

</div>

Hi All,

I was revisiting some spiral sorting of points in Dynamo and have just hit a mental roadblock.  
I am sure this workflow was functioning before, but today I just cant get my head around how to proceed.

The old topic is here:

> [@Sequential Numbering of Revit Elements](https://forum.dynamobim.com/t/sequential-numbering-of-revit-elements/13413):
>
> Hi, the task is to assign sequential numbers to a number of fire dampers, starting from the upper left damper. Some dampers are located one below other. Is there a method to do this without exporting coordinates to excel , sorting f.e. by X coordinate and assigning numbers manually? Or If I want to number them clockwise, could you suggest any algorithm etc? Thanks. [000000.pdf](https://forum.dynamobim.com/uploads/short-url/7zhBRIUiIMBbHRs6ngB1mf19vJx.pdf) (40.7 KB)

I am trying to compose a function to sort by (distance from and by angle around) at the same time…

Trying to attain some kind of curve through the points in green.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/43fe7f7862b83b988dff15acb95a5c68f9cffcc3.png)

Hopefully I remember what I was doing last time, but in the interim any thoughts?

---

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [November 8, 2017, 4:31pm UTC](https://forum.dynamobim.com/t/revisiting-spiral-sorting-of-points/16311/2 "2017-11-08T16:31:14Z")

</div>

When I click the link it says “Sorry, you don’t have access to that topic!” Is it locked or in a PM?

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [November 8, 2017, 5:32pm UTC](https://forum.dynamobim.com/t/revisiting-spiral-sorting-of-points/16311/3 "2017-11-08T17:32:09Z")

</div>

Link fixed @Steven  
I sat down with a pen and paper last night, no dynamo, and think I may have a fix for the workflow. Will test thus morning at the office.

---

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [November 8, 2017, 5:41pm UTC](https://forum.dynamobim.com/t/revisiting-spiral-sorting-of-points/16311/4 "2017-11-08T17:41:43Z")

</div>

Glad to hear you got some incite. Pen and paper is often the best way to go.
