The library currently uses a timsort.

1 Like