I've got troubles with a views sorting. I'm attempting to order the views output by a term's weight. The problem is that each taxonomy sub-term starts with weight 0, no matter what. Is there a way to get around that, so that the sub-terms are displayed correctly?

1 Answer 1


You can use hook_views_query_alter(&$view, &$query) here you can pass extra sorting more sorting fields

please check this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.