layer_order function

Change the layer adding order