title: Connecting a line through a scatter in a particular order? Python
body: <p>I've drawn a plot of 20 points on matplotlib
  However, applying a '-o' parameter on the plot causes the plots to be connected in a weird order.
  I would like it connected along the x axis (lowest x to highest x) </p>
  
  <p>It currently looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/Z6y7y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z6y7y.png" alt="Only plot, no -o"></a></p>
  
  <p>This is what it looks like with '-o'</p>
  
  <p><a href="https://i.stack.imgur.com/LIgtD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LIgtD.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to force matplotlib to plot in increasing order of x values?</p>