0

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?

0

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

http://www.chrisfree.me/2010/12/use-hookviewsqueryalter-handle-special-sort-cases
please check this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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