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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1959726-og-vocab-sort-weight-3.patch | 1.4 KB | amitaibu |
| #2 | vocabulary-order-display-correctly-1959726-2.patch | 1.28 KB | roysegall |
| #1 | vocabulary-order-display-correctly-1959726-1.patch | 1.11 KB | roysegall |
Comments
Comment #1
roysegall commentedThe 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.
Comment #2
roysegall commentedI replaced the query alter for ordering with array that will be sort by the terms vocabulary weight.
Comment #3
amitaibuPatch checks also the VID if weight is equal.
Comment #4
amitaibuCommitted, thanks,
Comment #5.0
(not verified) commentedUpdated issue summary.