title: Ruby Turn string into integer
body: <p>I'm trying to turn strings in my array</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>values = (1..10).to_a + ["Jack(11)", "Queen(12)", "King(13)", "Ace(14)"]</code></pre>
  </div>
  </div>
  </p>
  
  <p>into an integer, then sort the array with </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>def straight(hand)
    numbers = hand.each { |card| card.to_i }
    numbers.sort
  end</code></pre>
  </div>
  </div>
  </p>
  
  <p>and I keep getting the error</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>["Jack(11)", 9, 10, "Queen(12)", "Ace(14)"]
  5carddraw.rb:58:in `sort': comparison of String with 10 failed (ArgumentError)</code></pre>
  </div>
  </div>
  </p>
  
  <p>can anyone tell me how I can make this work?</p>