I have the following list:
myList <- list(list(a = 1,b = 1:5,x = 2),
list(a = 7,b = 9.1,x = 3),
list(a=-1, b = 0.2, x = 1))
And I would like to sort my elements in this list by criterion “x”.
I am at loss on how to do it. Any help would be greatly appreciated.
will do the trick