I have used the following code to sort files in alphabetical order and it sorts the files as shown in the figure:
for(int i = 0;i < maxcnt;i++)
{
for(int j = i+1;j < maxcnt;j++)
{
if(strcmp(Array[i],Array[j]) > 0)
{
strcpy(temp,Array[i]);
strcpy(Array[i],Array[j]);
strcpy(Array[j],temp);
}
}
}

But I need to sort it as order seen in Windows explorer

How to sort like this way? Please help
For a
Canswer, the following is a replacement forstrcasecmp(). This function recurses to handle strings that contain alternating numeric and non-numeric substrings. You can use it withqsort():Notes:
stricmp()rather than the Unix equivalentstrcasecmp().