How Can We Sort The Nested Tuple By The Second Element Solution Link Logicalpython

How Can We Sort The Nested Tuple By The Second Element Solution Link Logicalpython