I want to sort a QuerySet of contacts by a related field. But I do not know how. I tried it like this, but it does not work.
foundContacts.order_by(\"classif
as the documentation indicates, it should be used as in queries about related models
https://docs.djangoproject.com/en/3.0/ref/models/querysets/#order-by
foundContacts.order_by("classification__kam")