best sorting algorithm
What would be the best sorting to algorithm for a list that is probably 90% sorted? I assume that quick sort wouldn't be the most efficient in this case.
EDIT: the list is made of strings. So i don't think any of the linear sorts will work.
Also, what sorting algorithm does Collections.sort() use?
[319 byte] By [
rdevaa] at [2007-11-27 6:21:27]

Quote from the javadocs:
The sorting algorithm is a modified mergesort (in which the merge is omitted if the highest element in the low sublist is less than the lowest element in the high sublist). This algorithm offers guaranteed n log(n) performance.
http://java.sun.com/javase/6/docs/api/java/util/Collections.html#sort(java.util.List)