Quicksort is an efficient, general-purpose sorting algorithm with O(n * log(n)) average complexity.
You can read more here.