Sort using a custom comparator: Difference between revisions

Content deleted Content added
No edit summary
Line 64: Line 64:
==[[Python]]==
==[[Python]]==
[[Category:Python]]
[[Category:Python]]
'''Interpreter''': 2.4.3
def mycmp(s1, s2):
def mycmp(s1, s2):
d = len(s2) - len(s1)
d = len(s2) - len(s1)