Sorting layers shouldn't swap layers if one is overlapping another, and it doesn't, however - if there's a layer with a shadow that is below another layer, they will be swapped anyways.
I'm not sure if my description is clear enough so here's an example:
Sorting layers shouldn't swap layers if one is overlapping another, and it doesn't, however - if there's a layer with a shadow that is below another layer, they will be swapped anyways.
I'm not sure if my description is clear enough so here's an example:
Before sorting
After sorting