I have a bunch of sorted lists of objects, and a comparison function
class Obj : def __init__(p) : self.points = p def cmp(a, b) : return a.p
I don't know whether it would be any quicker, but you could simplify it with:
def GetObjKey(a): return a.points return sorted(a + b + c, key=GetObjKey)
You could also, of course, use cmp rather than key if you prefer.
cmp
key