title: python-requests: order get parameters
body: <p>I am implementing a client library for a private HTTP-API using <a href="http://python-requests.org">python requests</a>. The API(which I don't control) expects the parameters to be in a certain order, but python-requests doesn't honor a sorted dict as parameter.</p>
  
  <p>This is what i tried:</p>
  
  <pre><code>import requests
  from django.utils.datastructures import SortedDict
  
  params = SortedDict()
  params['s'] = 'value1'
  params['f'] = 'value2'
  
  requests.get('https://example.org/private_api', params=params)
  #performs request as https://example.org/private_api?f=value1&amp;s=value2 
  </code></pre>
  
  <p>This is what I am trying to avoid:</p>
  
  <pre><code>requests.get('https://example.org?{0}'.format(urlencode(params)))
  </code></pre>