Radial sort panels with different height

Hi, I have a problem which should be relatively simple, but I’m stuck and can’t seem to figure out now.

how can i sort the panels so that they are ordered from the bottom to the top following a spiral pattern? meaning: the first layer should to form 1-32 and the second layer of panels will start from 33 and so on and so on…

Thank you for your answers!

question.gh (11.7 KB)

:rofl: I love “simple” questions but…


Sorry about that, this is essentially the problem im trying to solve, i have updated my gh file
question.gh (11.7 KB)

sort_mesh_faces_2021May13a.gh (33.7 KB)