This is close. It works great if I have one Breakout selected, as you showed. But viewers will be able to select up to three breakouts. In other words, all three 'p.Breakout' parameters could be <> '(All).' Here's how that looks:
It sorts within the 'Leaf.' I need to keep it organized by the Breakouts within 'Leaf.' So if I move 'Sort Field' after 'Breakout 3' then I get this:
So it's not quite there.