Yes, the sort() method uses whatever compareTo() method has been defined in the objects it is sorting.
sort()
compareTo()
You have reached the end of the chapter.
Here are some topics you may wish to review: