A TreeSet is always sorted. It will sort itself.
Please read the API documentation before using a class, it clearly states that:


What you need to do is implement the Comparable interface in...