Hi all:I want to order a sequence using the Sequence sorting module from a Python script.I have the following code:
"
seq = [['Bruzon', 'CUB'], ['Anand', 'IND'], ['Kasparov', 'RUS']]
def test(oneElem, twoElem):
if oneElem[0] == twoElem[0]:
return 0
elif oneElem[0] > twoElem[0]:
return 1
else:
return -1sort_on =(('self', test, 'desc'))
return sequence.sort(seq, sort_on)
"and i get the error:
"
Error Type: SyntaxError
Error