Sort
Watch the marked bit of the medium. Sort each wave: does the medium move across the way the wave goes, or along it?