code: def filter_queryset(self, request, queryset, view):
          Filter the queryset, applying the ordering.
  
          The `ordering_param` can be overwritten here.
          In DRF, the ordering_param is 'ordering', but we support changing it
          to allow the viewset to control the parameter.
          """
          self.ordering_param = view.SORT
  
          ordering = self.get_ordering(request, queryset, view)
          if ordering:
              return queryset.order_by(*ordering)
  
          return queryset
docs: Filter the queryset, applying the ordering.
  
          The `ordering_param` can be overwritten here.
          In DRF, the ordering_param is 'ordering', but we support changing it
          to allow the viewset to control the parameter.