title: How to sort an array of objects with alphabets first and then with numbers in react
body: <p>Code:</p>
  <pre><code>keyword.sort((a, b) =&gt; a.Acr.localeCompare(b.Acr));
  </code></pre>
  <p>Current output:</p>
  <pre><code>[{
          &quot;Id&quot;: 947,
          &quot;Acr&quot;: 502,
          &quot;Definition&quot;: &quot;ADefBulk6&quot;,
          &quot;index&quot;: 0
      }, {
          &quot;Id&quot;: 762,
          &quot;Acr&quot;: &quot;AO&quot;,
          &quot;Definition&quot;: &quot;Anti&quot;,
          &quot;ID&quot;: 762,
          &quot;index&quot;: 1
      }, {
          &quot;Id&quot;: 72,
          &quot;Acr&quot;: &quot;AW&quot;,
          &quot;Definition&quot;: &quot;Corporate&quot;,
          &quot;ID&quot;: 762,
          &quot;index&quot;: 1
      }
  ]
  </code></pre>
  <p>Expected output:</p>
  <pre><code>[{
          &quot;Id&quot;: 947,
          &quot;Acr&quot;: &quot;AO&quot;,
          &quot;Definition&quot;: &quot;ADefBulk6&quot;,
          &quot;index&quot;: 0
      }, {
          &quot;Id&quot;: 762,
          &quot;Acr&quot;: &quot;AW&quot;,
          &quot;Definition&quot;: &quot;Anti&quot;,
          &quot;ID&quot;: 762,
          &quot;index&quot;: 1
      }, {
          &quot;Id&quot;: 72,
          &quot;Acr&quot;: 502,
          &quot;Definition&quot;: &quot;Corporate&quot;,
          &quot;ID&quot;: 762,
          &quot;index&quot;: 1
      }
  ]
  </code></pre>