def sort(self, sort='<STR_LIT>'):
context = str(self.context)<EOL>request_url = build_url_endpoint(self.ENDPOINT, context)<EOL>request_params = dict(self.request_params)<EOL>if sort not in self.SORT_VALUES:<EOL><INDENT>raise UrlSyntaxError(<EOL>'<STR_LIT>' % (<EOL>str(sort),<EOL>'<STR_LIT:U+002CU+0020>'.join(self.SORT_VALUES)<EOL>)<EOL>)<EOL><DEDENT>request_params['<STR_LIT>'] = sort<EOL>return self.__class__(request_url, request_params, context, self.etiquette)<EOL>
This method retrieve an iterable object that implements the method
__iter__. The arguments given will compose the parameters in the
request url.

This method can be used compounded with query, filter,
order and facet methods.

kwargs: valid SORT_VALUES arguments.

return: iterable object of Works metadata

Example 1:
    >>> from crossref.restful import Works
    >>> works = Works()
    >>> query = works.sort('deposited')
    >>> for item in query:
    ...     print(item['title'])
    ...
    ['Integralidade e transdisciplinaridade em equipes multiprofissionais na saúde coletiva']
    ['Aprendizagem em grupo operativo de diabetes: uma abordagem etnográfica']
    ['A rotatividade de enfermeiros e médicos: um impasse na implementação da Estratégia de Saúde da Família']
    ...

Example 2:
    >>> from crossref.restful import Works
    >>> works = Works()
    >>> query = works.sort('relevance')
    >>> for item in query:
    ...     print(item['title'])
    ...
    ['Proceedings of the American Physical Society']
    ['Annual Meeting of the Research Society on Alcoholism']
    ['Local steroid injections: Comment on the American college of rheumatology guidelines for the management of osteoarthritis of the hip and on the letter by Swezey']
    ['Intraventricular neurocytoma']
    ['Mammography accreditation']
    ['Temporal lobe necrosis in nasopharyngeal carcinoma: Pictorial essay']
    ...