I'm building an application that allows to page the result of a search. The results can be numerous that's why I used django's pagination. I have configured filters and sorting of results displayed by 10: `
def search_details(request, type_anc):
querylist = Annonce.objects.filter(type_annonce = type_anc, is_published=True)
...........
paginator = Paginator(querylist, 10)
page = request.GET.get('page')
paged_listings = paginator.get_page(page)
` When I click on the button that sends me to the next page, 'order_by' is not respected. For example I have a result that sorts the price by descending order and the last element is 850 000, in the next page the prices displayed should be below 850 000. Can you help me?