I am trying to sort these blocks using merge sort but I can't think of a way to accomplish that since the blocks are stored inside a list which requires swapping (.set method) to sort it out. (I don't want to use the built-in .sort method since the whole point is to use the sorting algorithm myself) and the merge sort doesn't use any swappings like the bubble sort.
Is there a way I can use the merge sort to sort these blocks that are stored inside a list?



