sort.

this is an algorithm that sorts a given array, using the comparison
algorithm! It sacrifices space complexity for time efficiency!