title: How to sort numbers correctly with Array.sort()?
body: <p>In multiple browsers, the following code doesn't sort the numbers correctly:</p>
  <pre><code>a = new Array();
  a.push(10);
  a.push(60);
  a.push(20);
  a.push(30);
  a.push(100);
  document.write(a.sort())
  </code></pre>
  <p>It returns <code>10,100,20,30,60</code>.</p>
  <p>Anyone know why?</p>