# Sorting parameters incompatible with one another

**URL:** <https://meta.discourse.org/t/sorting-parameters-incompatible-with-one-another/264831>\
**Category:** Bug\
**Created:** [May 12, 2023, 4:00pm UTC](https://meta.discourse.org/t/sorting-parameters-incompatible-with-one-another/264831 "2023-05-12T16:00:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyouTakeshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryoutakeshi/32/233130_2.png) [@RyouTakeshi](https://meta.discourse.org/u/RyouTakeshi)\
**Post date:** [May 12, 2023, 4:00pm UTC](https://meta.discourse.org/t/sorting-parameters-incompatible-with-one-another/264831/1 "2023-05-12T16:00:13Z")

</div>

**Priority/Severity** :  
Low / Medium

**Platform** :  
Windows / Any known browser

**Description** :  
When changing `desktop category page style` from `Categories and Latest Topics` to `Categories and Latest Topics (sort by topic created date)` the feature automatically applies the `order=created` parameter everywhere, and this seems to mess with other parameters.

Particularly, when browsing `/top?order=created&period=all`, the `period` parameter is entirely ignored. This applies to any and all period variations, month, year, etc. The expected result would be that it merely show the top results from that period, sorted by creation date. Manually removing the `order=created` parameter fixes the issue, and makes me therefore conclude it to be the culprit.

**Reproducible steps** :  
To reproduce this bug, simply change the setting `desktop category page style` to `Categories and Latest Topics (sort by topic created date)` and browse the `Top` tab, then sort by any period of your choosing and notice that you get the same results every time.

The bug also occurs when using [safe mode](https://meta.discourse.org/t/53504?silent=true).

---

<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:** [May 12, 2023, 4:51pm UTC](https://meta.discourse.org/t/sorting-parameters-incompatible-with-one-another/264831/2 "2023-05-12T16:51:41Z")

</div>

> [@RyouTakeshi](#):
>
> simply change the setting `desktop category page style` to `Categories and Latest Topics (sort by topic created date)` and browse the `Top` tab, then sort by any period of your choosing and notice that you get the same results every time.

Can repro. 👍

Indeed. From the Categories page to the Top page, it automatically leads to `/top?order=created`, and will keep this filter when we change the time filter (e.g. `/top?order=created&period=monthly`).  
The topics will be sorted only by their creation date, and it seems they won’t take into account whether they’re “top” or not.

---

<div class="post-metadata">

**Author:** ![RyouTakeshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryoutakeshi/32/233130_2.png) [@RyouTakeshi](https://meta.discourse.org/u/RyouTakeshi)\
**Post date:** [January 16, 2024, 9:59am UTC](https://meta.discourse.org/t/sorting-parameters-incompatible-with-one-another/264831/4 "2024-01-16T09:59:23Z")

</div>

Hey there, I’d like to poke this topic, as it’s still a bug more than 8 months later, and I don’t know if it’s being worked on, I just know it’s been a consistent complaint from my site’s users. I was hoping the new versions would fix or address this, but so far it’s still exists.
