You can send to back or bring to front primitives.
In the icon layer, when objects overlap, primitives are displayed at the front (in their creation order).
Note that extended classes are always displayed at the back.
As the order is defined in the Modelica text, using these commands modifies the Modelica text.