Feature request: Bring/send selected shape (with related lines/titles) to front/back with undo/redo support

Hello
It would be great to have:

A built-in API to move the selected shape to front/back while preserving its related lines and line titles.
The operation recorded in history, so undo/redo works.
Ideally a single command/transaction (e.g., bringToFront/sendToBack) that treats the shape and its dependents as one action.
This would make layer management more reliable without breaking links, and improve the editing workflow.

Hello,

Could you clarify your feature request in more detail?
We have two different entities - Diagram and DiagramEditor - and their behavior differs.
Could you share a couple of images showing the exact scenario where you expect this “bring/send” behavior, so we can understand what should happen in your case?