I want to create a function that sorts a list that its elements are many other lists composed of words and numbers as shown next :
[[4, "apple"], [2, "orange"], [5, "waterlimon"] [1, "pineapple"], [3, "bananas"]]
However, I want the output to be :
[[1, "pineapple"], [2, "orange"], [3, "bananas"], [4, "apple"], [5, "waterlimon"]]
Does anyone have any idea how to do this, please? Thank you.