# Sorting by creation date doesn't work

**URL:** https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162
**Category:** Support
**Created:** [August 7, 2023, 9:38am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162 "2023-08-07T09:38:57Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [August 7, 2023, 9:38am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/1 "2023-08-07T09:38:57Z")

</div>

I don’t know if this is due to a recent change or if it’s always been like that, but when I go to /edit/settings and choose sort by creation date (descending), I expect to see topics sorted by creation date.

However, I’m getting topics sorted by last activity. Is it just me?

Edit: I edited the category, changed it to order by activity and saved it. They I edited it again and changed it to order by created and saved it. Now it appears to work again. 🤷‍♂️

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [August 8, 2023, 8:07am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/4 "2023-08-08T08:07:25Z")

</div>

> [@Nacho\_Caballero](#):
>
> I edited the category, changed it to order by activity and saved it. They I edited it again and changed it to order by created and saved it. Now it appears to work again.

A few hours after this change, I checked again and the order went back to decreasing activity instead of decreasing creation (I’m the only administrator, so I know nobody else changed it).

Strangely, that’s only on desktop (I’ve checked on multiple accounts and different browsers). On mobile, topics do show up ordered by creation.

Even more strangely, when I add `?order=created` to the URL and visit it, other logged in users see the right (default) order.

Anything else I can try?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [August 8, 2023, 8:28am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/5 "2023-08-08T08:28:22Z")

</div>

Can you post a screenshot of the desktop view vs mobile view? I know asking this might sound silly, but sometimes there are obvious things we can miss 🙂

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [August 8, 2023, 8:46am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/6 "2023-08-08T08:46:21Z")

</div>

I think I’ve found one possible source of confusion: the category/tag links on the homepage (class=“subcategory”) point to the `/latest` endpoint of that category. Even though it doesn’t show up on the URL, you can see it in the Network tab:

 ![CleanShot 2023-08-08 at 10.57.10@2x](https://global.discourse-cdn.com/meta/original/4X/2/e/6/2e675e7e6300cf9044ed104754b1f71cfcdd7c1a.png)

But if I reload the page, I get the category (id 25 in this case) with the default order (“created descending” in my case)

 ![CleanShot 2023-08-08 at 10.57.57@2x](https://global.discourse-cdn.com/meta/original/4X/8/9/3/8934383edd0b2b2bd836474f3f9cb7619e249c39.png)

Is there a way to prevent this behavior?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [August 8, 2023, 9:21am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/8 "2023-08-08T09:21:55Z")

</div>

Could you record this behavior or screenshot the elements that link to `/latest` when they shouldn’t in your opinion?

When I have a category ordered by creation date, whether it’s a parent or subcategory, navigating through the navigation bar  
 ![image](https://global.discourse-cdn.com/meta/original/4X/8/0/7/80746728a019f41a1458335adb00b3ad943c15c8.png)  
doesn’t redirect to `/latest` for me, so I currently can’t repro this issue.

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [August 8, 2023, 10:22am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/9 "2023-08-08T10:22:10Z")

</div>

I mean these links:

 ![CleanShot 2023-08-08 at 12.20.33@2x](https://global.discourse-cdn.com/meta/original/4X/5/3/b/53b408e18471c51d9d212d324a9d9a28076717d4.png)

Check in the Network tab in the developer tools (it doesn’t show up on the URL) and compare it to reloading the page.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [August 8, 2023, 10:54am UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/10 "2023-08-08T10:54:03Z")

</div>

Thank you!

I think it’s indeed not the desired behavior, especially since the category links from the sidebar link to `/id`. I’d say it’s not exactly a bug, but something that has been overlooked.

Can you make a new topic with detailed explanations and screenshots in #Contribute > Bug (we’ll recategorize it later if not the best category for this)? The thing to emphasize is that these links don’t honor the category settings.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 11, 2023, 12:19pm UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/11 "2023-09-11T12:19:54Z")

</div>

Just to round this one out - This was indeed a bug, and fixed in:

> [@Category links should honor category order settings](https://meta.discourse.org/t/category-links-should-honor-category-order-settings/274333/8):
>
> Hi @Nacho_Caballero - I just pushed a second fix which should get things working as expected: [https://github.com/discourse/discourse/commit/534f62cf5b6796f9e5380aaf9fd7721d75ac096e](https://github.com/discourse/discourse/commit/534f62cf5b6796f9e5380aaf9fd7721d75ac096e) Please let us know if you’re still seeing any problems after updating.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 11, 2023, 12:20pm UTC](https://meta.discourse.org/t/sorting-by-creation-date-doesnt-work/274162/12 "2023-09-11T12:20:02Z")

</div>


