quicksort on hr