sort order for categories and tags boxes

Created on 9 May 2025, about 2 months ago

Problem/Motivation

On the products page, the 'categories' and 'tags' boxes are sorted in a peculiar way. The 'categories' box appears to be sorted by number of products held within each category, while the 'tags' box appears to be unsorted (or randomly sorted).

I would really like to sort both boxes in alphabetical order. How can I achieve this?

Steps to reproduce

Simply click 'products' page.

Proposed resolution

Guide me through the steps that need to be taken to sort both boxes in alphabetical order.

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

5.1

Component

Documentation

Created by

🇳🇱Netherlands johnnybravosr@outlook.com

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • 🇳🇱Netherlands johnnybravosr@outlook.com

    I went in my browser to "admin/structure/taxonomy/manage/d_product_categories/overview". First I pressed the button "Revert to alphabetical order", but that didn't work. Next I adjusted the category weights, but that had no effect on the sort order in the categories box on the products page either. So I'm very curious how the sort order in the categories box (and in the tags box) is determined, and how to adjust it?

  • 🇳🇱Netherlands johnnybravosr@outlook.com

    I found how to do it. In admin go to settings>search and metadata>facets. There you find product_categories_taxonomy_term_name_block and tags_taxonomy_term_name_block. Press 'edit' to configure them. Under 'facet sorting', turn off 'sort by count'. That's it! Now the Categories box and the Tags box are sorted in alphabetical order.

Production build 0.71.5 2024