Hi,
I’m sorry that feature does not exist for the material editor, however it is available for blueprint graphs.
You are right it can get messy, but UE4 shader can more complex then 3ds max, and it’s hard to generate a tool that will arrange them automaticly