diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py index 2b20e76af5..5789c74c77 100644 --- a/rest_framework/pagination.py +++ b/rest_framework/pagination.py @@ -822,8 +822,8 @@ def get_ordering(self, request, queryset, view): if ordering_filters: # If a filter exists on the view that implements `get_ordering` - # then we defer to that filter to determine the ordering. - filter_cls = ordering_filters[0] + # then we defer to the last such filter to determine the ordering. + filter_cls = ordering_filters[-1] filter_instance = filter_cls() ordering_from_filter = filter_instance.get_ordering(request, queryset, view) if ordering_from_filter: