title: Sorting an array of decimal & whole numbers
body: <p>I can't seem to figure this one out. </p>
  
  <pre><code>var arr = [2.62, 111.05, 1.05]
  arr.sort(); 
  </code></pre>
  
  <p>This returns [1.05, 111.05, 2.62], but I'm expecting [1.05, 2.62, 111.05].</p>
  
  <p>How can this be achieved? I've read a bit about writing a custom sort to split the "decimal" but haven't managed to have any success.</p>