This example demonstrates a very simple way to sort your sprites. That is, which sprite is in the front, and which are in the back. The sort order is set by putting the names of each sprite in a certain order in a list. In this project, if a sprite is clicked, it's moved to the top of that list (to the front). If you look inside, don't forget to check the stage scripts. All the sprites are identical, except their names and color. All code is by me (@kriblo), but the method is from @RokCoder's project Batty ball bouncer, check it out: https://scratch.mit.edu/projects/398402800/