'Ordering is set by a comma delimited ?ordering=... query parameter.
The `ordering` query parameter can be overridden by setting
the `ordering_param` value on the OrderingFilter or by
specifying an `ORDERING_PARAM` value in the API settings.'

def get_ordering(self, request, queryset, view):

    params = request.query_params.get(self.ordering_param)
    if params:
        fields = [param.strip() for param in params.split(u',')]
        ordering = self.remove_invalid_fields(queryset, fields, view, request)
        if ordering:
            return ordering
    return self.get_default_ordering(view)
