Bubble sort gets its name for the way smaller or larger elements bubble to the two ends of the list. Check out the coding doodle.