title: Sort by filename with glob(..., GLOB_BRACE)
body: <p>Let's say I have these files in the current folder:</p>
  
  <pre><code>a.txt
  b.txtbis
  c.txt
  + other files with other extensions
  </code></pre>
  
  <p>I want to list <code>.txt</code> and <code>.txtbis</code> files in a single list with PHP <code>glob</code>, and I want the result to be sorted by filename. Unfortunately:</p>
  
  <ul>
  <li><p><code>glob("*.{txtbis,txt}", GLOB_BRACE)</code> gives <code>Array ( [0] =&gt; b.txtbis [1] =&gt; a.txt [2] =&gt; c.txt )</code></p></li>
  <li><p><code>glob("*.{txt,txtbis}", GLOB_BRACE)</code> gives <code>Array ( [0] =&gt; a.txt [1] =&gt; c.txt [2] =&gt; b.txtbis )</code></p></li>
  </ul>
  
  <p>None of them is sorted as it should.</p>
  
  <p><strong>How to have a list sorted by filename when using braces in <code>glob</code>?</strong></p>