title: Ksort working fine but 1 item is not correct. Same thing happens on multiple cases
body: <p>I have an array populated dynamically from customers data in a foreach loop. It looks like this :
  &quot;Émilie Champagne&quot; =&gt; &quot;array&quot;,</p>
  <pre><code>$customers = get_customers_from_orders( $customers_orders ); // Get an array of customers data
  if ( $customers !== 'empty' ) {
    
    $customers_items = array();
    foreach ( $customers as $customer ) {
      $html = '';
      // THE CUSTOM LIST ITEM
      $html .= '&lt;li order_id=&quot;'.$customer['order_id'].'&quot; email=&quot;'.$customer['email'].'&quot;&gt;';
      $html .= $customer['name'];
      $html .= '&lt;/li&gt;';
      $customers_items[$customer['name']] = $html;
    }
    ksort( $customers_items );
    foreach ( $customers_items as $customer_item ) {
      $customer_list .= $customer_item;
    }
  }
  </code></pre>
  <p>When i use the ksort, its working but only one customer at the end is not sorted correctly.</p>
  <p><a href="https://i.stack.imgur.com/OkJWn.png" rel="nofollow noreferrer">Screenshot showing the result</a></p>
  <p>You can see the last item is starting with letter &quot;E&quot;.</p>
  <p>The same thing happens on 3 others ksort function on the same page.</p>
  <p>Any idea how i could fix this?</p>