nodes: 0, module; 1, function_definition; 2, function_name:sortlevel; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, expression_statement; 10, return_statement; 11, identifier:level; 12, None; 13, identifier:ascending; 14, True; 15, identifier:sort_remaining; 16, None; 17, comment:"""
          For internal compatibility with with the Index API.
  
          Sort the Index. This is for compat with MultiIndex
  
          Parameters
          ----------
          ascending : boolean, default True
              False to sort in descending order
  
          level, sort_remaining are compat parameters
  
          Returns
          -------
          Index
          """; 18, call; 19, attribute; 20, argument_list; 21, identifier:self; 22, identifier:sort_values; 23, keyword_argument; 24, keyword_argument; 25, identifier:return_indexer; 26, True; 27, identifier:ascending; 28, identifier:ascending
code: def sortlevel(self, level=None, ascending=True, sort_remaining=None):
          """
          For internal compatibility with with the Index API.
  
          Sort the Index. This is for compat with MultiIndex
  
          Parameters
          ----------
          ascending : boolean, default True
              False to sort in descending order
  
          level, sort_remaining are compat parameters
  
          Returns
          -------
          Index
          """
          return self.sort_values(return_indexer=True, ascending=ascending)