title: How to sort a javascript array of numbers
body: <p>I need to sort an array in javascript.. </p>
  
  <p>anyone how to do that??</p>
  
  <p>by default the sort method doesn't work with numbers...</p>
  
  <p>I mean:</p>
  
  <pre><code>a = [1, 23, 100, 3]
  a.sort()
  </code></pre>
  
  <p>a values are:</p>
  
  <pre><code>[1, 100, 23, 3]
  </code></pre>
  
  <p>thanks :)</p>