Material Slots Order

Hi, I’ve created a blueprint for a procedural house but I’ve a problem with material slots: I added into the blueprint an array with different kind of houses that have multiple material slots. The problem is that the order of the material slots is different for each mesh, for example: In the first mesh the walls material is placed in “material slot 0” but in the second mesh the same material is placed in “material slot 1”. I also added into the blueprint some nodes that allow me to change the materials but if I change the material in the “material slot 0” of the first mesh it’s apply that material in the wrong material slot of the other meshes. I already tried to fix this problem adding as much Set Material nodes as the meshes are but doing this I have an infinity of nodes just to change the materials. What I need to know if there is a way to change the order of the material slots.
Someone could help me please? Thanks in advance!

If you use Set Material by Name it should not matter in which slot the material is as long as the name matches. So if the name of the wall slot is “Wall” for all meshes, it will change all the walls.

Thank you so much for help!