title: How to sort file names with numbers and alphabets in order in C?
body: <p>I have used the following code to sort files in alphabetical order and it sorts the files as shown in the figure: </p>
  
  <pre><code>for(int i = 0;i &lt; maxcnt;i++) 
  {
      for(int j = i+1;j &lt; maxcnt;j++)
      {           
          if(strcmp(Array[i],Array[j]) &gt; 0)
          {            
              strcpy(temp,Array[i]);      
              strcpy(Array[i],Array[j]);      
              strcpy(Array[j],temp);    
          }    
      } 
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/0tcZ8.jpg" alt="enter image description here"></p>
  
  <p>But I need to sort it as order seen in Windows explorer </p>
  
  <p><img src="https://i.stack.imgur.com/saMLP.jpg" alt="enter image description here"></p>
  
  <p>How to sort like this way? Please help</p>