Is there a way to set the render order of aline renderer by segment (between two points) instead of the whole line? I sorty everything else by y-axis(and layers), but the line renderer seems to sort itself depending on the middle of all its points.

On the upper corner, the line renderer is in front of the wall, on the lower corner, its behind the wall.
If its not possible to order by segment, I will have to give up on the line renderer alltogether.
If thats so, does someone know of an asset on the store that fits my needs?
Here is the line render:
