How do I perform secondary sorting in python?,"sorted(list5, key=lambda vertex: (degree(vertex), vertex))"