code: def sort_values(self, return_indexer=False, ascending=True):
          _as = self.argsort()
          if not ascending:
              _as = _as[::-1]
          sorted_index = self.take(_as)
          if return_indexer:
              return sorted_index, _as
          else:
              return sorted_index