Gibots interview question

Sort a 2 dimensional array.