timSort
Sorts the given random access List using the Comparator. The list must implement RandomAccess. This method uses the Tim sort algorithm, but falls back to binary sort for small lists.
See also
Throws
if list is e.g. a linked list without random access.
Sorts the given random access List in natural order. The list must implement [ ]. This method uses the Tim sort algorithm, but falls back to binary sort for small lists.
See also
Throws
if list is e.g. a linked list without random access.