I tried to find solutions in the ST settings, although it definitely says "Sketch and Toon follows a drawing order for the lines:
• If the lines are at different depths from the camera, the one closest to the camera is drawn on top.
"
Thank you very much for your solution. As far as I understand, the 2 ways are actually one solution (add intermediate points explicitly in one case, and implicitly in the second). For me this is also unexpected behavior of "ST"
ps
Interestingly, this behavior is not observed in c4d R11 for example