title: Javascript - sorting arrays containing positive and negative "decimal" numbers
body: <p>I originally had the following callback passed as a parameter to the javascript array <code>sort()</code> function:</p>
  
  <pre><code>function sortNumber(a,b) {
  return a-b;
  }
  </code></pre>
  
  <p>However this doesn't work when my array contains positive and negative decimal numbers (i.e. -107.578, 97.453 etc.)  How would I modify this to sort properly?</p>