lambda added to sort the sprites on the Y axis (thanks François ;) )
sort done on the sprite positions and not on their rect center
no need of variable
draw done out of the updatePosition method