The Isometric Tilemap and Tiles should be set up correctly for the Tiles to sort correctly, which can be done by following the manual at:
https://docs.unity3d.com/6000.0/Documentation/Manual/tilemaps/work-with-tilemaps/isometric-tilemaps/renderer/tilemap-renderer-isometric-modes.html
In Chunk mode, the Sprites used should come from the same Texture or be atlased using a Sprite Atlas.
In Individual mode, the Sprites should have the correct pivots set to be aligned with the Isometric grid.