title: how to return index of a sorted list?
body: <p>I need  to sort a list and then return a list with the index of the sorted items in the list. For example, if the list I want to sort is <code>[2,3,1,4,5]</code>, I need <code>[2,0,1,3,4]</code> to be returned. </p>
  
  <p>This question was posted on bytes, but I thought I would repost it here.
  <a href="http://bytes.com/topic/python/answers/44513-sorting-list-then-return-index-sorted-item">http://bytes.com/topic/python/answers/44513-sorting-list-then-return-index-sorted-item</a></p>
  
  <p>My specific need to sort a list of objects based on a property of the objects. I then need to re-order a corresponding list to match the order of the newly sorted list. </p>
  
  <p>Is there a good way to do this?</p>