Priority queue delegates to the compareTo.
Items added to the priority queue will be asked to compare themselves with other elements by default. This behaviour can be changed.