Ordering of primitives

I have many primitives and it seems the line primitive is below my billboards. I would like set the lines on top of the billboards.

I see that scene.getPrimitives and the .add() methods but I am trying to figure out how to place a or a set of primitives to the top.

Resolved. I lowerToBottom(primitive) function worked.