This works perfectly in Python 2.7
def some_compare_func(x, y):
....
a = sorted(some_list, lambda x, y: some_compare_func(x, y))
However, the same gives this error in Python 3.x.
TypeError: sorted expected 1 arguments, got 2
Is there a way to sort with a sorting function that works both in Python 2.7 and 3.x?