Sprite sorting improvements.