Sorting Surfaces

Hi all
I was trying to figure a way to sort some surfaces according to their position. First of all I started sorting all min points of the bounding box but i can’t find a way to tell dynamo to sort also the surfaces that host the points.
Can anyone help me?


Sort by key should do the trick.

List is your surfaces.
Key is the minpoint of the bounding boxes.

Hi Jacob
Yes list by key sgould do the work. But i still can’t arrange the panels. The first point seems to be correct, but the first Panel it’s still random


Am i getting it wrong?

Camera export your entire graph please. The issue isn’t with the sort node it’s with another aspect of the list management.

You want to sort the surfaces by their location, not sort the surfaces by the sorted locations.

Try wiring the BoundingBox.MinPoint into the Point.Y node and then wire the Point.Y node into the List.SortByKey node.

1 Like

Wonderful…thanks for the answer