title: Loop through files in a numeric order (Like on Windows Explorer)
body: <p>I have a group of files that I want to be sorted numerically with FOR command like this:</p>
  
  <pre><code>FOR %%G IN (*.pdf) DO (
  ECHO %%G
  )
  </code></pre>
  
  <p>Is there any way to have :</p>
  
  <pre><code>1.pdf
  2.pdf
  3.pdf
  ...
  10.pdf
  11.pdf
  </code></pre>
  
  <p>Instead of : </p>
  
  <pre><code>1.pdf
  10.pdf
  11.pdf
  12.pdf
  ...
  2.pdf
  21.pdf
  </code></pre>
  
  <p>Like they are ordered on the Windows Explorer?
   <a href="https://i.stack.imgur.com/Xl08L.png" rel="nofollow noreferrer">My files ordered on Windows Explorer</a></p>