This is from KS and BB book, why it is getting possible for the class ReSortComparator to use compareTo() method of Comparable interface in compare() method, though ReSortComparator class doesn't implements it.
And whats actually internally happening at line 12 and why we have done so..?