title: How to customize sort an array
body: <p>I'm trying to sort an array of objects in JS, but it doesn't work for some reason.
  The array I requested from API may contain numbers, upper and lower case letters, and some Chinese characters.</p>
  <p>eg:</p>
  <pre><code>const arr = [
  { &quot;title&quot;: &quot;!Test Segment and CSV&quot; }, 
  { &quot;title&quot;: &quot;&amp;test (SC)&quot; }, 
  { &quot;title&quot;: &quot;1234test (SC)&quot; }, 
  { &quot;title&quot;: &quot;AAShop1 (SC)&quot; }, 
  { &quot;title&quot;: &quot;AAShop2(SC)&quot; }, 
  { &quot;title&quot;: &quot;ABCshop123 (SC)&quot; },
  { &quot;title&quot;: &quot;adidas Outlet&quot; },
  { &quot;title&quot;: &quot;AIGLE&quot; }, 
  { &quot;title&quot;: &quot;American Eagle&quot; },
  { &quot;title&quot;: &quot;Châteraisé&quot; }, 
  { &quot;title&quot;: &quot;Tekcent&quot; }, 
  { &quot;title&quot;: &quot;반찬 &amp; COOK&quot; },
  { &quot;title&quot;: &quot;始祖鸟&quot; }, 
  { &quot;title&quot;: &quot;春水堂&quot; }, 
  { &quot;title&quot;: &quot;稻成&quot; }
  ];
  </code></pre>
  <p>I want it sorted according to the following rules.</p>
  <ol>
  <li><p>sort a after A</p>
  </li>
  <li><p>sort B after A</p>
  </li>
  <li><p>sort Ac after ABC</p>
  <pre><code> { &quot;title&quot;: &quot;!Test Segment and CSV&quot; }, 
   { &quot;title&quot;: &quot;&amp;test (SC)&quot; }, 
   { &quot;title&quot;: &quot;1234test (SC)&quot; }, 
   { &quot;title&quot;: &quot;AAShop1 (SC)&quot; }, 
   { &quot;title&quot;: &quot;AAShop2(SC)&quot; }, 
   { &quot;title&quot;: &quot;ABCshop123 (SC)&quot; },
   { &quot;title&quot;: &quot;AIGLE&quot; }, 
   { &quot;title&quot;: &quot;American Eagle&quot; },
   { &quot;title&quot;: &quot;adidas Outlet&quot; },
   { &quot;title&quot;: &quot;Châteraisé&quot; }, 
   { &quot;title&quot;: &quot;Tekcent&quot; }, 
   { &quot;title&quot;: &quot;始祖鸟&quot; }, 
   { &quot;title&quot;: &quot;春水堂&quot; }, 
   { &quot;title&quot;: &quot;稻成&quot; },
   { &quot;title&quot;: &quot;반찬 &amp; COOK&quot; }
  </code></pre>
  </li>
  </ol>
  <p>Thanks in advance for any help!</p>