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