   Ordering a List Based Upon Atrributes
  Hello,Lets say I have I have five items in a list, each item is an instance of the class x.list = []class X(object):    def __init__(self):    self.randominteger = random()asd123 = Xedfg34 = Xasdf5897 = xfdjj3456 = Xmnbv4567= Xlist.append(asd123)list.append(edfg34)list.append(asdf5897)....What if I wanted to arrange the items in the list, based upon the value of each item's member randominteger, so for example the instance of X with the highest randominteger would be first on the list etc.Thanks in advance   
 Sorting in python