I don't understand the comparison function, but it's really enjoyable listening to the algorithm work out its logic.
Might I ask for the implementation of other sorting algorithms here?
https://youtu.be/5SaFTm2bcac?si=J99_Sh9x3fIBCSms