Domanda di colloquio di Google

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