c# sort list by alphabetical order code example Example: how to sort string array alphabetically in c# Array.Sort(names, (x,y) => String.Compare(x.Name, y.Name));