The problem is that it should display details b, g, o but infact it is displaying details b, o, g. this is the problemn that needs solving. I also added a dummy details p with a subreport named ZZZZZZ and this displayed as b, o, p, g. It seems that g always appears last.
I hope htat clears...