Clouds are always rendered in front of chunk borders (that can be enabled by using F3+G).
MC-162341 World border is rendered behind clouds
MC-163079 Chunk borders are rendered in front of all non-transparent blocks