This macro allows you to intuitively change the stacking order of elements.
Shift-select them in the order you need, and run the macro. You can force the last item selected to be the bottom of the stacking order, or the top. The other shapes will correspond.
This ability is important for certain industrial processes. You can now determine where on the final output material the device will start cutting, by ordering the objects in a specific way.