python sorting - a list of objects,somelist.sort(key=lambda x: x.resultType)