Sorts the items in an array into ascending order, by using a pivot elements to
divide the array into two parts, one which contains only elements smaller than the
pivot element and one which contains only elements larger than the pivot element.
Sorts the items in an array into ascending order, by selecting the
largest item and putting it last; then selecting the next largest
and putting it next to last; and so on.