pmp display controls

I'm working with property manager page. I'm able to switch visibility of controls and groups, and everything else that I need.

Problem that I have is displaying controls in order. According to solidworks controls will be displayed as they being created, which is true for most situations.

I have a problem when I'm trying to display controls that don't belong to any group, on top of the pmp, and then some groups down below.

Whatever I do groups are being displayed first and then controls not belonging to groups.

I tried top property, from propertyManagerPageControl which works nicely for aligning multiple controls next to each other, but still below a group.

Anybody have some suggestions.

SolidworksApi macros