# Sorting by name on tag page

**URL:** https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485
**Category:** Bug
**Tags:** tags, fixed
**Created:** [January 27, 2026, 10:00pm UTC](https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485 "2026-01-27T22:00:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jenroberts](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jenroberts](https://meta.discourse.org/u/jenroberts)
#### Post date: [January 27, 2026, 10:00pm UTC](https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485/1 "2026-01-27T22:00:16Z")

</div>

Since the new feature to be able to create tags directly on the [tag page](https://meta.discourse.org/tags) was rolled out in December, I can’t seem to get the tags to sort by name. Count works fine, but Name seems to be completely random. I thought it might just be my site, but it is doing the same thing on Meta (see below). Is there a setting I’m missing or is this a bug?

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/9/b/d9b27c97fca0b8386d91029b06deabe80c63b06b.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [January 27, 2026, 10:16pm UTC](https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485/2 "2026-01-27T22:16:48Z")

</div>

I think this is a bug. The tags seem to be ordered by ID instead of name when you select “name”.

| My tags page ordered by name | [Data explorer](https://meta.discourse.org/t/32566?silent=true) result for tag ids and names |
| --- | --- |
| ![Screenshot_20260127_231958_Firefox](https://global.discourse-cdn.com/meta/original/4X/f/d/2/fd2c57619b343e418fca698e802fe7006359c969.jpeg) | ![Screenshot_20260127_231759_Firefox](https://global.discourse-cdn.com/meta/original/4X/7/f/2/7f271283f6a36d1806abc6e52d1ebd4141ed088c.jpeg) |
| | |

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [January 28, 2026, 9:30am UTC](https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485/4 "2026-01-28T09:30:48Z")

</div>

This will solve it I think

[https://github.com/discourse/discourse/pull/37339/changes](https://github.com/discourse/discourse/pull/37339/changes)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [January 28, 2026, 5:59pm UTC](https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485/7 "2026-01-28T17:59:44Z")

</div>

I think this is only a partial fix: It works fine when I use the “name” button at the top, but the order is still wrong when the `Tags sort alphabetically` site setting is enabled and you open the tag page, even though “names” is selected then too.

Maybe the “id” here also needs to be changed to “name”?

> <https://github.com/discourse/discourse/blob/678eff560a7e39ebab7b2867c999c85e25e26042/frontend/discourse/app/controllers/tags/index.js#L38>

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [January 28, 2026, 11:47pm UTC](https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485/8 "2026-01-28T23:47:22Z")

</div>

Good catch, that should fix it

[https://github.com/discourse/discourse/pull/37363](https://github.com/discourse/discourse/pull/37363)

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [January 31, 2026, 7:00am UTC](https://meta.discourse.org/t/sorting-by-name-on-tag-page/394485/9 "2026-01-31T07:00:39Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
