Reminds me of this gem: https://lizengland.com/blog/2014/04/the-door-problem/
Reminds me of this gem: https://lizengland.com/blog/2014/04/the-door-problem/
Heavy stuff first, cold things together, fragile stuff last.
This can actually be caused by using mixed line endings. Which is a whole new class of horrible.
Maybe mermaid fits your use case?
https://mermaid.js.org/