<human>:  Python sorting - A list of objects
<bot>: Here is some code to sort list `L` based on the value of variable 'resultType' for each object in list `L`

sorted(L, key=operator.itemgetter('resultType'))

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