Array.Sort()
chooses one of three sorting algorithm, depending on the size of the input:
- If the size is fewer than 16 elements, it uses an insertion sort algorithm.
- If the size exceeds
2 * log^N
, whereN
is the range of the input array, it uses a Heap Sort algorithm. - Otherwise, it uses a Quicksort algorithm
Source: Array.Sort(Array) Method on MSDN.