docs: def format_results(self, results, request):
          """
          Prepares sorting parameters, and sorts results, if(as) necessary
          """
          self.prepare_sorting_fields()
          if self._sorting_fields:
              results = self.sort_results(results)
  
          if request.accepted_renderer.format == 'html':
              # Makes the the results available to the template context by transforming to a dict
              results = {'data': results}
  
          return results