Cut out the columns and sort them according to size. How do you go about sorting them?
Would you do it randomly? Would you put them in a big pile and pull one out at a time? Does your friend have a different way of sorting?
These are all fine strategies for humans, but to program a computer, we’d need to be much more specific. This algorithm sorts the columns by comparing them to each other one by one.