How to order a list of tuple first with respect to second element of the tuple and then with respenc

How to Sort Tuples in Python by Multiple Elements