Oracle interview question

Coding ques - Sort list of lists.