Alphabetizes an array either in ascending order or descending order.

This code alphabetizes an array arr in ascending order if the parameter rev is false (which is default); or descending order, if rev is true. This could be accomplished simply by other means, but the point of this program was to use the comparison operators to achieve the goal.