docs: def set_sort(self, request):
          """
          Take the sort parameter from the get parameters and split it into
          the field and the prefix
          """
          # Look for 'sort' in get request. If not available use default.
          sort_request = request.GET.get(self.sort_parameter, self.default_sort)
          if sort_request.startswith('-'):
              sort_order = '-'
              sort_field = sort_request.split('-')[1]
          else:
              sort_order = ''
              sort_field = sort_request
          # Invalid sort requests fail silently
          if not sort_field in self._allowed_sort_fields:
              sort_order = self.default_sort_order
              sort_field = self.default_sort_field
          return (sort_order, sort_field)