fix backwards quicksort