code: def _get_query_params(query):
      
      query_params = OrderedDict(sorted(query['query'].items()))
      return ' '.join(['{}={}'.format(k, v) for k, v in query_params.items()])
docs: >>> _get_query_params({'query': {'a': 1, 'c': 3, 'b': 5}})
      'a=1 b=5 c=3'