how to sort string array alphabetically in c#

C#
Array.Sort(names, (x,y) => String.Compare(x.Name, y.Name));
Source

Also in C#: