Polygonal face alignment


I am trying to sort the faces of breps and orient them according to their angles in order stack them like a stone wall.
How can I find the same normals of two different polytopes and then stack them on to each other.

Thanks in advance.
face alignment.gh (11.9 KB)