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