DEV Community

Discussion on: What each sorting algorithm is good for

Collapse
 
kgashok profile image
kgashok • Edited

Hybrid sorts like the TIMsort, a combination of InsertSort and MergeSort, is the way sorting happens in Python. Interestingly, Java 7 uses a Dual-Pivot Quicksort for primitives, TimSort for objects, and MergeSort for Object arrays and collections.

To know all about TIMsort, read dev.to/s_awdesh/timsort-fastest-so...

Collapse
 
pancy profile image
Pan Chasinga

Very interesting, thank you!