Rendering order of multiple entities of the same layer

This thread might help you out.