asp alphabetize array code example Example 1: array sort c# Array.Sort(myArray); Example 2: c# sort array Array.Sort(arr);