Implementing Comparable to sort Objects

Example of how to sort a list of objects by Implementing the Comparable
interface and overriding its compareTo() method.