code: def get_ordering(self, request, queryset, view):
          
          params = view.get_request_feature(view.SORT)
          if params:
              fields = [param.strip() for param in params]
              valid_ordering, invalid_ordering = self.remove_invalid_fields(
                  queryset, fields, view
              )
  
              # if any of the sort fields are invalid, throw an error.
              # else return the ordering
              if invalid_ordering:
                  raise ValidationError(
                      "Invalid filter field: %s" % invalid_ordering
                  )
              else:
                  return valid_ordering
  
          # No sorting was included
          return self.get_default_ordering(view)
docs: Return an ordering for a given request.
  
          DRF expects a comma separated list, while DREST expects an array.
          This method overwrites the DRF default so it can parse the array.