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