I am having an input array defined as follows:
string[] inputArray = { "a", "s", "d", "f", "g", "2", "3", "34", "4", "4", "y", "a", "f", "8", "h", "m" };
When i perform Sorting over this array i am getting the output as:
{"2","3","34","4","4","8","a","a","d","f","f","g","h","m","s","y"}
Why the numbers comes before alphabets?
Is
Array.Sort()performs sorting on the basics of ASCII code(ascii code of numbers are lower than letters)?- How the Sort order is defined if the array consist of special characters and alpha-numeric?