Emile van Sebille wrote: >>the standard library, or somebody has a 2 liner which does the same > thing. > > aList.sort(lambda x,y: cmp( (x.name, x.age, x.rand) , (y.name, y.age, > y.rand) ) ) You are too clever for your own good ... regards Max M