A little test shows that the rendering of sprites with equal priority is now in sprite number order, not creation order.
If you want a sprite to appear on top of another of the same priority, give it a higher sprite number.
sync on
sync rate 0
sync sleep 1
box 0, 0, 64, 64, rgb(255,255,255), rgb(255,255,255), rgb(255,255,255), rgb(255,255,255)
box 1, 1, 63, 63, rgb(255,0,0), rgb(255,0,0), rgb(255,0,0), rgb(255,0,0)
get image 1, 0, 0, 64, 64, 1
sprite 2, 50, 50, 1
sprite 3, 100, 100, 1
sprite 1, 0, 0, 1
sprite 5, 200, 200, 1
sprite 4, 150, 150, 1
do
sync
loop