You can do math on the layer’s index to get to the layer above, like this:
thisComp.layer(index-1)
Or you can use relative indexing, like this:
thisComp.layer(thisLayer,-1)
but, you can’t change the actual stacking order with an expression. It wasn’t clear to me if you understood this. Sorry if you did. You could shuffle them in Z space if they are 3D layers though.
Dan