How do I get a line renderer to draw over sprites?

I’ve been trying to get a line renderer to draw over sprites, but I haven’t been able to do it.
I’ve also tried searching, but could not find an answer.

If it isn’t possible, is there an alternative way to draw a line?

Here’s what I was able to come up with on Unity 5.6.1

public class SetLineRendererSortingLayer : MonoBehaviour 
{

    public LineRenderer lr;
    public string SortingLayer;
    public int OrderInLayer;

    void Awake() 
    {
        lr = this.GetComponent<LineRenderer>();
    }

    void Start() 
    {
        lr.sortingLayerName = SortingLayer;
        lr.sortingOrder = OrderInLayer;
    }

}

Reading more about Unity’s Sorting Layers made for a simple solution. If you’re unsure how to utilize the script above check out the README in the repository my solution is stored in.