E-Cell IIT Madras interview question

How would you sort a 2D Matrix