Python sorting - A list of objects,s.sort(key=operator.attrgetter('resultType'))