The display of the vocabs depended on the time the terms were tagged to the node. Steps to reproduce:
1. Create a group, group content and two vocabularies related to the group content type(i checked this on a auto complete form type)
2. Create node(AKA "Node a") and tag term from vocab A
3. Create node(AKA "Node b") and tag term from vocab B
4. Tag term from vocab B to node a
5. Tag term from vocab A to node b

You can see that the vocab don't appear in the same order.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RoySegall’s picture

Status: Active » Needs work
FileSize
1.11 KB

The patch indeed invoke in the present of the terms but the OrderBy function don't affect the way the vocabulary presented. Attaching the patch so other people could leverage the work on the patch.

RoySegall’s picture

I replaced the query alter for ordering with array that will be sort by the terms vocabulary weight.

amitaibu’s picture

Status: Needs work » Needs review
FileSize
1.4 KB

Patch checks also the VID if weight is equal.

amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks,

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.