namespace demo_array
{
class Program
{
static void Main(string[] args)
{
//Program that uses Array.Sort of Character
string[] a = new string[]
{
"Manish",
"Raju",
"Swati",
"Zaineb",
"Ajay",
"Rajiv",
};
Array.Sort(a);
foreach (string s in a)
{
Console.WriteLine(s);
}
Console.ReadKey();
// Another Program that uses Array.Sort of Number
int[] b = new int[]
{
2,5,4,1,8,9,7,5,6
};
Array.Sort(b);
foreach (int s in b)
{
Console.WriteLine(s);
}
Console.ReadKey();
}
}
}