It looks like you're new here. If you want to get involved, click one of these buttons!
On the GUI, when I right-click on the layer list -> 'Sort By' -> 'Layout index, Layer And Datatype'
this sorts the layer,
I would like to do the same in Python,
Most commands from the right click list are part of the class LayoutView
Is there also a prepared command for it?