sort a list of objects `s` by a member variable 'resultType',s.sort(key=operator.attrgetter('resultType'))