title: Sorting an array of strings in Ruby
body: <p>I have learned two array sorting methods in Ruby:</p>
  
  <pre><code>array = ["one", "two", "three"]
  array.sort.reverse!
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>array = ["one", "two", "three"]
  array.sort { |x,y| y&lt;=&gt;x }
  </code></pre>
  
  <p>And I am not able to differentiate between the two. Which method is better and how exactly are they different in execution?</p>