Worst Case:

O(n2)

Average Case:

O(n log(n))