title: how to sort an object by date string as key - python
body: <p>I have the object:</p>
  
  <pre><code>{'2017-10-2': 0.09457282561051072, '2017-10-3': 0.06606813446091735, '2017-10-1': 0.13701336286945082, '2017-10-6': 0.08511672971024725 }
  </code></pre>
  
  <p>And would like to sort it by date ( but the type of keys is string, not datetime ).
  The response should like like:</p>
  
  <pre><code>{   
      '2017-10-1': 0.13701336286945082,
      '2017-10-2': 0.09457282561051072, 
      '2017-10-3': 0.06606813446091735, 
      '2017-10-6': 0.08511672971024725 
  }
  </code></pre>
  
  <p>Was trying to find something using google ,but unsuccessfully.</p>
  
  <p>Thanks in advance,</p>