John Deere interview question

Can you tell me how does the bubble sort method work?