def _sort_to_str(self):
params_list = []<EOL>timestamp = "<STR_LIT>"<EOL>for k, v in self._solr_params['<STR_LIT>'].items():<EOL><INDENT>if k != "<STR_LIT>":<EOL><INDENT>params_list.append("<STR_LIT:U+0020>".join([k, v]))<EOL><DEDENT>else:<EOL><INDENT>timestamp = v<EOL><DEDENT><DEDENT>params_list.append("<STR_LIT:U+0020>".join(['<STR_LIT>', timestamp]))<EOL>self._solr_params['<STR_LIT>'] = "<STR_LIT:U+002CU+0020>".join(params_list)<EOL>
Before exec query, this method transforms sort dict string

from

    {"name": "asc", "timestamp":"desc"}

to

    "name asc, timestamp desc"