slight reduction in the number of comparisons for quicksort
Merge pull request #8848 from stevengj/sortier

slight reduction in the number of comparisons for quicksort