title: Sort 2d dict by the values
body: <p>I have a 2d dict like this:<br> 
  <code>{'John' : {'a' : 9, 'b' : 2, 'c': 5}, 'Smith' : {'d' : 1, 'r' : 3, 'f': 4}}</code></p>
  
  <p><br>And I want to print/save them, sorted, like this:<br>
  John a 9<br>
  John c 5<br>
  Smith f 4<br>
  Smith r 3<br>
  John b 2<br>
  Smith d 1<br></p>
  
  <p>Such that they are sorted by their inner value. both keys are not known beforehand.</p>
  
  <p>Is there a way to do this?
  Thanks!</p>