human
Python sorting - A list of objects
assistant
Here is some code to sort a list of objects 'somelist' where the object has member number variable `resultType`

somelist.sort(key=lambda x: x.resultType)

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