title: javascript sorting array of mixed strings and null values
body: <p>When soritng an array made of a mix of strings, null values and zeros, i get the result not properly as exptected, null values seem to get sorted as if they were 'null' strings.
  I did this (tested on FireFox):</p>
  
  <pre><code>var arr1 = arr2 = [null, "b", "c", "d", null, "e", 0, "g", null, 0, "h", "i", "l", "m", "n", "o", "p", "ne", "nur", "nimbus"];
  
  document.write("SORTED ARRAY:&lt;br&gt;");
  arr1.sort();
  arr1.forEach(function(val){document.write(val + "; ")});
  </code></pre>
  
  <p>And the result is:</p>
  
  <p>SORTED ARRAY:
  0; 0; b; c; d; e; g; h; i; l; m; n; ne; nimbus; null; null; null; nur; o; p; </p>
  
  <p>Do you have an idea of how to make the null value be considered like empty string during the sorting of the array, so that they appear 1st in the sorted arry along with the zeros.</p>
  
  <p>Thanks!</p>