All elements in the list must implement the Comparable interface
So make your class implement Comparable, then write the compareTo method. Here is how to write compareTo.
I can't emphasize enough that it is important to learn how to use the Javadoc documentation. I'm happy to help you as much as you need it, but to become an independent programmer, it is important to be able to read it.