1

I have a taxonomy term "Store Locations". I have added terms as State & City by parent child concept. Like this:

enter image description here

I have created Store Locations as node and assign them in the taxonomy term like this:

enter image description here

Now I want to sort the nodes as per parent taxonomy term name.

For e.g: I have created the parent term "Bihar" first, then added "Andaman". So the term ID for Bihar is 6 and 7 for Andaman. So the sorting is showing Bihar at first and then Andaman.

I want to display them as alphabetical order of the parent term.

Currently the view is showing as per parent term id, not by name.

enter image description here

1 Answer 1

0

I have added another relationship "Taxonomy Term" as Parent and in Sort Criteria added a filter "Taxonomy Term Name" in ascending order.

enter image description here

2
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. Commented Jul 14, 2022 at 21:52
  • Note that a taxonomy term with no parent will be sorted first. If the goal is alphabetical sort, then this will be sorted incorrectly. However if the goal is alphabetical, but terms that have no parent should be first, then it it is correct. Commented Feb 26 at 19:01

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.