I have a content type A
that has a node reference to a content type B
.
How can I create a view that show A
nodes, and either filter by or sort by the number of references to the content type B
? (Let's suppose the node reference to B field in A is named field_reference_b
)
I'm interested in both filtering and sorting by that criteria.
Edit:
I could do this using the module Views PHP Filter, but I'm trying to avoid using it as much as possible.
COUNT
inSQL
sentences.