title: Unicode sort number before space in Linux environment
body: <p>In my Linux environment, I use <code>u8_casecoll</code> to sort strings. With local set to &quot;en_US.UTF-8&quot;, below is the sort order.</p>
  <ol>
  <li>&quot;Member1_LN&quot;</li>
  <li>&quot;Member Group&quot;</li>
  </ol>
  <p>But in Windows environment, I use <code>CompareStringW</code> to sort, and below is the sort order.</p>
  <ol>
  <li>&quot;Member Group&quot;</li>
  <li>&quot;Member1_LN&quot;</li>
  </ol>
  <p>I have a requirement to make the Linux environment exhibit the same behavior as Windows. Can someone help to tweak the Linux code to get the expected sort order? Thanks in advance.</p>
  <p>Below is the C code for the Linux environment.</p>
  <pre><code>#include &lt;errno.h&gt;
  #include &lt;locale.h&gt;
  #include &lt;unitypes.h&gt;
  int main()
  {
      setlocale(LC_ALL, &quot;en_US.UTF-8&quot;);
      uint8_t text1[] = &quot;Member1_LN&quot;;
      uint8_t text2[] = &quot;Member Group&quot;;
      int ret_val = 0;
      int resultp = 0;
      ret_val = u8_casecoll(text1,u8_strlen(text1),text2,u8_strlen(text2), NULL, NULL, &amp;resultp);
      if(0 == ret_val)
      {
          printf(&quot;resultp = %d\n&quot;, resultp);
          printf(&quot;expected = 1\n&quot;);
      }
      else
      {
          int err = errno;
          printf(&quot;u8_casecoll ret = %d errno = %d\n&quot;, ret_val, err);
      }
      return 0;
  }
  </code></pre>
  <p><strong>Output:</strong></p>
  <pre><code>resultp = -1
  expected = 1
  </code></pre>