The index determines the rendering order of the children layers of a parent. The layer with index=0 is rendered first.
l_layer_index(widget, layer)
widget path or layer object of class 'l_layer'
layer id. If the widget argument is of class 'l_layer'
then the layer argument is not used
numeric value
Note that the index for layers is 0 based.