sort at various levels in python,"top_n.sort(key=lambda t: (-t[1], t[0]))"