#NEWLINE# def sort( self , inplace = True , ascending = True , na_position = 'last' ) : #NEWLINE# #INDENT# "\n        DEPRECATED: use :meth:`Categorical.sort_values`. That function\n        is just like this one, except that a new Categorical is returned\n        by default, so make sure to pass in 'inplace=True' to get\n        inplace sorting.\n\n        See Also\n        --------\n        Categorical.sort_values\n        " #NEWLINE# warn ( 'sort is deprecated, use sort_values(...)' , FutureWarning , stacklevel = 2 ) #NEWLINE# return self . sort_values ( inplace = self , ascending = ascending , na_position = na_position )