if ordering.startswith('-'):
    queryset = queryset.order_by(Lower(ordering[1:])).reverse()
else:
    queryset = queryset.order_by(Lower(ordering))
return queryset
Do case-insensitive ordering with django-filter