I'm working on an editor for a card game. I can drag a selection rectangle and move/copy multiple sprites, but the z order gets messed up. Not sure why this is happening, but I thought I could fix the problem by saving the initial z order (and updating this as needed) and then setting the z order again.
Unfortunately, there's no way to "SET" the z order for a sprite, only the elevation -- which I know is a different thing.
So how do I fix this? (Thanks!)