How to make translucent sorting have different indexes between tiles?

For example if i would have a building tilemap, i want enemies would render on top of the tilemap at the bottom side of building and enemies would render behing the tilemap on top side of the building. At the sides of building they should render as well on top of the tilemap. I can’t find how to do it for tilemap anywhere.