sort a list of objects 'somelist' where the object has member number variable `resulttype`,somelist.sort(key=lambda x: x.resultType)