human
Python sorting - A list of objects
assistant
Here is some code to sort a list of objects `s` by a member variable 'resultType'

s.sort(key=operator.attrgetter('resultType'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.