The compareTo method of the Comparable interface. Implementing Comparable allows calling Collections.sort. It is always costly process in
java to sort. It is usually much preferred to let the database perform the sort using the ORDER BY clause, rather than in code.