import operator
myList = [[1, 200], [3, 200], [4, 300], [2, 200], [1, 300]]
new = sorted(myList, key=operator.itemgetter(1, 0))
print (new)
You just need to mention the priority in itemgetter(). 1 first for the second position, then 0 for the first.
Output:
[[1, 200], [2, 200], [3, 200], [1, 300], [4, 300]]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…