title: Why doesn't sort give me the right values if there isn't a line after it?
body: <p>When sort doesn't have a line following it, the results are incorrect. I put a breakpoint on the sort line, and stepped over until the sort line had run, and inspected the values of <code>myvector</code>.
  <a href="https://i.stack.imgur.com/zj1X5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zj1X5.png" alt="enter image description here"></a></p>
  
  <p>But when there is a line following it, even though the line has nothing to do with the myvector variable, I get the right values. Here I could put the breakpoint after the sort, so I needed need to step over anything. What's going on here?
  <a href="https://i.stack.imgur.com/SRbUS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SRbUS.png" alt="enter image description here"></a></p>