title: Check sort order of values Ruby with Capybara
body: <p>I have a table that has columns that can be sorted ascending / descending.</p>
  
  <p>Is there a way in which I can check the sort is correct?</p>
  
  <p>I was thinking of having a sorted list stored in an array, then storing each item from the table into a second array, zipping together with the Ruby <code>zip</code> method and making a comparison.</p>
  
  <p>Would this be the best way or is there a simpler way?</p>
  
  <p>The values are reference numbers like so:</p>
  
  <pre><code>AUT001
  AUT002
  AUT003
  AUT004
  CCT113
  CCT114
  CCT115
  </code></pre>