I have tags (taxonomy terms) and created a tags pageview.

I want to sort my tags alphabetically and group them by letter of the alphabet.

How can I do this? Thank you

I want a single page. I don't want to filter the results.

A :



B :





enter image description here


I have found a possible solution but I need help. In my view I created a "Global: Custom text" field and I grouped this field in the format of the view.

It sounds really good. Now what TWIG code to put in the "Global: Custom text" field to extract the first letter of {{ name }} (which corresponds to the field "Taxonomy term: Name").

I tested the following code, but it doesn't work :

{{ '{{ name }}'|first }}
  • Isn't there a glossary view in core by default?
    – leymannx
    Nov 2, 2020 at 13:50
  • I never noticed the Glossary view before. Great share @leymannx Nov 2, 2020 at 16:19
  • This is not really my question. I don't want to filter the results, I want to group them under a letter. Finally the answer is not suitable because it is necessary to create a term by letter.
    – fire
    Nov 2, 2020 at 16:57

1 Answer 1


I expect you could arrive at this by having a hyerachrical vocabulary. Use the drag handles indent terms as below.

- term 1
- term 2

- term 3
- term 4

If you needed to list terms in a view, you could use the 'terms with depth' option.

No idea why someone has downvoted your question. It seems perfectly reasonable.

  • I updated my question. See below.
    – fire
    Nov 2, 2020 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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