Sprite rendering order on perspective camera

I’m experimenting with an isometric game by using sprites and a perspective camera.

However, rotating the camera causes weird rendering orders, and things to become on top of what they shouldn’t.

The green terrain is a grid of square sprites. The character is on top of the terrain, with a slight angle (as shown in the upper image). But when the camera rotates, the terrain renders on top, even though nothing actually moved.

Is this a bug? Or am I doing something wrong? Thanks.

I’m having the same issue…