I need to sort my view by a specific field that is actually a node reference field.
For some reason, however, the node reference field does not appear in the sort criteria list.
Is there any reason for that? How can I solve this problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t sort by a node because Drupal wouldn’t know the criteria for sorting a node to say which is first and which is second, etc.
I assume you mean that you want to sort by some field (like the title) of a node that is referenced.
To sort by a field in the referenced node, you have to the referenced node in a relationship to join the tables. Them you can simply add a sort by ‘
title‘ field but be sure to select the correct relationship under the Relationship drop down when you create the sort field.