Matrix Sort question

Matrix Sort question