#NEWLINE# def sorted( self , key = None , reverse = False ) : #NEWLINE# #INDENT# '\n        Uses python sort and its passed arguments to sort the input.\n\n        >>> seq([2, 1, 4, 3]).sorted()\n        [1, 2, 3, 4]\n\n        :param key: sort using key function\n        :param reverse: return list reversed or not\n        :return: sorted sequence\n        ' #NEWLINE# return self . _transform ( transformations . sorted_t ( key = self , reverse = reverse ) )