The numbers from 1 to 50 are printed on cards. The cards are shuffled and then laid out face up in 5 rows of 10 cards each. The cards in each row are rearranged to make them increase from left to right. The cards in each column are then rearranged to make them increase from top to bottom. In the final arrangement, do the cards in the rows still increase from left to right?
-From Canadian Math Olympiad 1980
I played around with a few cases and the final arrangement did seem to increase from left to right, but is there any way to prove/disprove whether this will always be the case? I looked online but could not find any solutions.