title: typescript error - 'boolean' is not assignable to type 'number'
body: <p>Can anybody help me.</p>
  
  <p>I am trying to sort strings from array</p>
  
  <pre><code>var someArray= ["3a445a_V1", "3", "2a33s454_V1", "1", "3_V2", "2s4a34s3_V2", "234343"];
  
  const [record] = someArray.map(r =&gt; parseFloat(r.replace('_V','.'))).sort((a,b) =&gt; a &lt; b);
  
  console.log(record)
  //it returns 3a445a.1
  </code></pre>
  
  <p><a href="https://jsfiddle.net/zautub83/4/" rel="nofollow noreferrer">JFIDDLE</a></p>
  
  <p>In browser console.log it works fine, not in typescript? </p>
  
  <p>typescript it is giving below error
  <strong>Error:</strong></p>
  
  <pre><code>error TS2345: Argument of type '(a: number, b: number) =&gt; boolean' is not 
  assignable to parameter of type '(a: number, b: number) =&gt; number'.
        Type 'boolean' is not assignable to type 'number'.
  </code></pre>
  
  <p>Any idea? thanks in advance</p>