static void Main(string[] args) { var arr = new[] { 12, 11, 13, 5, 6, 7 }; printArray(arr); Quick.Sort(arr); printArray(arr); }
public static void Sort <T>(T[] array) where T : IComparable { KnuthShuffle(array); Quick.Sort(array, 0, array.Length - 1); }