parameters: ( self, mode, clause='' )
docstring: Set sorting mode.
docstring_summary: Set sorting mode.
docstring_tokens: Set sorting mode .
function: def SetSortMode ( self, mode, clause='' ):
  		"""
  		Set sorting mode.
  		"""
  		assert ( mode in [SPH_SORT_RELEVANCE, SPH_SORT_ATTR_DESC, SPH_SORT_ATTR_ASC, SPH_SORT_TIME_SEGMENTS, SPH_SORT_EXTENDED, SPH_SORT_EXPR] )
  		assert ( isinstance ( clause, (str,text_type) ) )
  		self._sort = mode
  		self._sortby = str_bytes(clause)
function_tokens: def SetSortMode ( self , mode , clause = '' ) : assert ( mode in [ SPH_SORT_RELEVANCE , SPH_SORT_ATTR_DESC , SPH_SORT_ATTR_ASC , SPH_SORT_TIME_SEGMENTS , SPH_SORT_EXTENDED , SPH_SORT_EXPR ] ) assert ( isinstance ( clause , ( str , text_type ) ) ) self . _sort = mode self . _sortby = str_bytes ( clause )