×

Merge sort

Sorting algorithm
In computer science, merge sort is an efficient, general-purpose, and comparison-based sorting algorithm. Most implementations produce a stable sort, which means that the relative order of equal elements is the same in the input and output. Wikipedia
Worst-case complexity: n*log(n)
Stable: Yes
Best complexity: n*log(n)