Some Possible Answers
¥Pass
the comparison method as an argument to the sort method. How can we do this? We will discuss a
pattern for doing this later.
¥Exploit an interface in all of
the built-in types with a sensible total ordering called Comparable.