Every comparison sort is a sequence of tiny questions: is this item bigger than that one? Count the questions and the algorithms separate. Bubble, insertion and selection sort ask about n²/2 of them; merge, heap and quicksort get away with about n log₂ n, and no comparison sort can do fundamentally better.