add reverse query ids in djabgo queryset result code example Example: django reverse queryset queryset = reversed(Collection.objects.filter(pk__in = li))