Switch join order node

Hi,
@Einar_Raknes. How should the script be wirtten, if i dont want to choose the floors, but automatic want to change the cutting order. Or, to step up the game, i want a special cutting order for florrs, collumns AND walls? I tried it with the suggestions for this topic: Auto join Elements but i am deadlocked and dont know where to go on.

Regards,
Ammo