title: rank lists in python by their elements
body: <p>I'm trying to do something like a medals tally ranking with Lists in python. I have a List which keeps growing. Each element in the list is a list with four elements.</p>
  
  <p>eg: <code>L = [[0,1,2,3],[3,0,6,2]]</code></p>
  
  <p>I'm trying to rank the elements in this list such that the result turns out to be(for the above eg):</p>
  
  <p><code>L = [[3,0,6,2],[0,1,2,3]]</code> i.e. something like a medals tally where the first element in the inner list is gold, second is silver etc </p>
  
  <p>Is there a simple way to do this in python ?</p>