def sortkeypicker(keynames):
    negate = set()
for i, k in enumerate(keynames):
    if k[:1] == '-':
        keynames[i] = k[1:]
negate.add(k[1:])

def getit(adict):
    composite = [adict[k] for k in keynames]
for i, (k, v) in enumerate(zip(keynames, composite)):
    if k in negate:
        composite[i] = -v
return composite
return getit
a = sorted(b, key=sortkeypicker(['-Total_Points', 'TOT_PTS_Misc']))
Список сортировки словарей Python по нескольким ключам