title: Sort array of strings with negative and positive numbers
body: <p>Firstly I could not find a question addressing the whole issue.</p>
  
  <p>I used to compare arrays like this:</p>
  
  <pre><code>array.sort((a, b) =&gt; {
      return a.localeCompare(b, undefined, {numeric: true, sensitivity: 'base'})
  })
  </code></pre>
  
  <p>But I realized it does not work on an array like <code>['a', 'A', 'B', -1.50', '0', '1.50', '-2', '2']</code>.</p>
  
  <p>The expected output would be: <code>['-2', '-1.50', '0', '1.50', '2', 'A', 'a', 'B']</code>.</p>
  
  <p>I have some dirty ideas to achieve it. But maybe there is a clean and easy way.</p>