title: Sort list of lists by min/max in Python
body: <p>I apologize for a simple question, but I cannot find an answer to it in the archives.
  what should i do to sort smaller lists within a larger list.
  for example</p>
  
  <p><code>lst=[[1, 2, 3, 4], [5,9,8,7], [9, 0, 1, 2, 3 ]]</code></p>
  
  <p>should return </p>
  
  <p><code>[1, 2, 3, 4]
  [5,7,8,9]
  [ 0, 1, 2, 3,9 ]</code></p>
  
  <p>I tried to use lambda 
  <code>lst.sort(key=lambda x: x.min())</code>
  and sorted 
  <code>lst.sort(key=lambda x: sorted(x))</code>
  but neither works. could you please direct me a little bit. Thanks for your guidance.</p>