refactored my_sort to use a basic quicksort alg