title: What is the best way to sort items on one of the items values
body: <p>I have two instances of an object in a list</p>
  
  <pre><code>class Thing():
       timeTo = 0
       timeFrom = 0
       name = ""
  
  o1 = Thing()
  o1.name = "One"
  o1.timeFrom = 2
  
  o2 = Thing()
  o2.timeTo = 20
  o2.name = "Two"
  
  myList = [o1, o2]
  
  
  biggestIndex = (myList[0].timeFrom &lt; myList[1].timeTo) &amp; 1
  bigger  = myList.pop(biggestIndex)
  lesser  = myList.pop()
  
  print bigger.name
  print lesser.name
  </code></pre>
  
  <p>both o1 and o2 have two properties that I want to compare the first in the lists timeFrom property and the second ones timeTo property to eachother.</p>
  
  <p>I feel this is a bit awkward and wierd, is there perhaps a better and more readable approach to this?</p>