Whats above the other

Hi, this might be the worse question ever… But anyway, what decides on what sprite or movie clip gets the highest z coordinate in 2d? I mean which sprites would be on top of the other…

I hope you understood!
Thanks :slight_smile: