Merge sort: the Python, one line at a time

Python


    

The list: items (dashed lines split it into groups; green groups are sorted)

Inside merge

middle–
left–
right–

Calls waiting (top = running now)

Output (print)