Google interview question

Sort a nested array ordered by the second element in the index