Which sorting algorithm is used by .NET\'s Array.Sort()
method?
Array.Sort()
chooses one of three sorting algorithm, depending on the size of the input:
2 * log^N
, where N
is the range of the input array, it uses a Heap Sort algorithm.Source: Array.Sort(Array) Method on MSDN.