title: Sorting Dictionary in python with the given Dict Format
body: <p>I want to convert my dict from </p>
  
  <pre><code> results = {"r3":ab,"r1":ac,"r9":ab,"r12":ad,"r19":ae,"r11":ar,"r2":af,"r21":aa,
              "r31":a,"r99":ad,"r111":af,"r116":af,"r211":ar,"r221":aq,}
  </code></pre>
  
  <p>to </p>
  
  <pre><code>{"r1":ac,"r2":af,"r3":ab,"r9":ab,"r11":ar,"r12":ad,"r19":ae,"r21":aa,
       "r31":a,"r99":ad, "r111":af,"r116":af,"r211":ar,"r221":aq,}
  </code></pre>
  
  <p>I had tried with </p>
  
  <pre><code>json_data = json.dumps(results, sort_keys = True)
  </code></pre>
  
  <p>and with  </p>
  
  <pre><code>(sorted(results.items(),reverse=False)) but not getting desired output
  </code></pre>
  
  <p>Help me to obtain properly sorted directly</p>