Why Collections.sort uses merge sort instead of quicksort?
Highly likely from Josh Bloch §: I did write these methods, so I suppose I’m qualified to answer. It is true that there is no single best sorting algorithm. QuickSort has two major deficiencies when compared to mergesort: It’s not stable (as parsifal noted). It doesn’t guarantee n log n performance; it can degrade to … Read more