code: def get_ordering(self):
          
          if self.sorting_field:
              return [self.sorting_field]
          prefix = self.get_prefix()
          fields = self.get_ordering_with_prefix()
          if self.prefix:
              fields = [f.replace(prefix, "", 1) for f in fields]
          return [
              f
              for f in fields
              if f.lstrip("-") in self.get_ordering_fields_lookups()
          ]
docs: Ordering used for queryset filtering (should not contain prefix).