Steps required:
Create a taxonomy and add it as a field in content type. Create a view sorted by taxonomy term.

Expected behaviour:
List would be sorted the same as the order set in the vocabulary admin page

Actual behaviour:
List is sorted 1,2,3,0 putting the first term last in the list. Tried showing row weights in vocabulary admin and setting weights to 1,2,3,4 as a quick fix but this gets immediately reset to 0,1,2,3.

Comments

Mark F created an issue. See original summary.

lendude’s picture

Status: Active » Postponed (maintainer needs more info)

Create a view sorted by taxonomy term

Is this a 'content' View that has a relationship to the taxonomy term or a View of taxonomy terms?

What is the View sorted on? Is it sorted on the taxonomy term weight or something else?

Mark F’s picture

StatusFileSize
new578.6 KB
new127.06 KB
new298.82 KB
new26.05 KB

Its a content view table with the only sort criteria being in the table settings where Pr. (priority) is the default sort. I've attached some screenshots.

alexrayu’s picture

It seems that this is related to cache. Ordering calamity happens when the user who does this is other than UID 1 - some other user with permissions to edit taxonomy.

Version: 8.3.0-rc1 » 8.3.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

pameeela’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
Issue tags: +Bug Smash Initiative

This view is not configured to sort the content by term weight. As a field in the table, the 'Priority' value is just the name, not the term weight.

If you want to use the term weight to sort the content, you have to:

  1. Add a relationship to the view with the term reference field
  2. Add the term weight to the sort criteria using the relationship