title: Sorting Characters followed by alphanumeric in angular
body: <p>I want to sort the characters first followed by alphanumeric like below.</p>
  <pre><code>[Austria , Germany , 123aed , 234eds]
  </code></pre>
  <p>This is what i have tried</p>
  <pre><code>obj.sort((a,b) =&gt; {
    if (
        (isNaN(a.text) &amp;&amp; isNaN(b.text)) || (!isNaN(a.text) &amp;&amp; !isNaN(b.text))
    ) {
      return a &gt; b ? -1 : 1;
    }
    else {
      return isNaN(a) ? -1 : 1;
    }
  })
  </code></pre>
  <p>But it is sorting in this way</p>
  <pre><code>[123aed , 234eds , Austia , Germany]
  </code></pre>
  <p>Any suggestions or help?</p>