Several pseudo-code for sort algorithm
bubble sort
worst time complexity: $O(n^2)$
best time complexity $O(n)$
average time complexity $O(n^2)$
additional space complexity $O(1)$
selection sort
average time complexity $O(n^2)$
additional space complexity $O(1)$
Merge sort
time complexity: $O(n\log n)$
space complexity: $O(n)$
Quick sort
worst time complexity: $O(n^2)$
best time complexity: $O(n\log n)$
average time complexity: $O(n \log n)$
additional space complexity: $O(1)$
heap sort
time complexity: $O(n\log n)$
additional space complexity $O(1)$