title: Ruby Array Delete at
body: <p>In the irb prompt:</p>
  
  <pre><code>array = [1,2,3,4,5]
  array &lt;&lt; 0
  array.sort
  [0,1,2,3,4,5]
  </code></pre>
  
  <p>I fully understand the above, but when I do this:</p>
  
  <pre><code>array.delete_at(2)
  </code></pre>
  
  <p>it deletes 3 in the array. 
  If the first is considered 1, why the number 3 was removed instead of number 1?</p>