It will render incorrectly when the distance of the sword object is less than the player object (= in front).
Objects get rendered back to front, so first player sprite, then sword sprite which will overdraw the transparent areas and thus won't blend correctly with the objects that are behind.