using System;
using System.Collections.Generic;
//Copy, sort. Many sort methods operate in-place. This means the unsorted, original collection no longer exists. To retain the original order, we must first copy the elements.
//Here:
//The List elements are sorted, but the original array is left alone. This requires the .NET Framework version 4.0 or later to compile.
public class Program
{
public static void Main()
string[] array = { "zebra", "parrot", "ant" };
List<string> copy = new List<string>(array);
copy.Sort();
Console.WriteLine(string.Join(",", array));
Console.WriteLine(string.Join(",", copy));
}