code: def _get_sorter(subpath='', **defaults):
      @restrict_access(scope='read')
      def _sorted(self, *args, **kwargs):
          if not kwargs.get('params'):
              kwargs['params'] = {}
          for key, value in six.iteritems(defaults):
              kwargs['params'].setdefault(key, value)
          url = urljoin(self._url, subpath)
          return self.reddit_session.get_content(url, *args, **kwargs)
      return _sorted