Question d’entretien chez Spotify

Live code to sort a multi dimensional array with least time complexity