I probably have got a really novice question, but I wasn't able to find anything about that:
How can I sort the output of a n:n-relation? I my specific case I've got a catalog, including categories and products. Each product can be assigned to multiple categories.
It is no problem to sort a 1:n-relation via DataObject::get(...). But using the n:n-relation, there is one more table to manage and I don't know, how to include it into my query.