MetaDesign Solutions interview question

2.sort a matrix first two columns?