pivot pivot pivot pivot pivot pivot pivot pivot pivot figure quick sort example (pivot median strategy algorithm quicksort(list prelist postlist has been sorted into values of ascending order if list count /already sorted return list end if pivot -medianvalue(list for to list count- if list[ipivot equal insert(list[ ] end if if list[ipivot less insert(list[ ] end if if list[ipivot greater insert(list[ ] end if end for return concatenate(quicksort(less)equalquicksort(greater) end quicksort