c# string array sort alphabetically code example
Example 1: how to sort string array alphabetically in c#
Array.Sort(names, (x,y) => String.Compare(x.Name, y.Name));
Example 2: c# alphabet array
char[] alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray();