# Sort by category and replies doesn't work in search results

**URL:** <https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925>\
**Category:** Bug\
**Tags:** search\
**Created:** [Julho 9, 2015, 2:06pm UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925 "2015-07-09T14:06:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)\
**Post date:** [Julho 9, 2015, 2:06pm UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/1 "2015-07-09T14:06:58Z")

</div>

1. do a search
2. On the results page, click the “Category” column header

It will not sort by category, like it should.

NOTE: This bug also affects the Replies column. However, the views and activities columns seem to work fine.

---

<div class="post-metadata">

**Author:** ![anon25879736](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anon25879736](https://meta.discourse.org/u/anon25879736)\
**Post date:** [Julho 9, 2015, 2:22pm UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/2 "2015-07-09T14:22:30Z")

</div>

> [@jtbayly](#):
>
> However, the views and activities columns seem to work fine.

That’s because clicking the headers on those columns adds a a clause to the search query, “order:views” and “order:latest” respectively.

---

<div class="post-metadata">

**Author:** ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)\
**Post date:** [Julho 9, 2015, 2:24pm UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/3 "2015-07-09T14:24:04Z")

</div>

So isn’t that what the Category and Replies columns should do too, then?

---

<div class="post-metadata">

**Author:** ![anon25879736](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anon25879736](https://meta.discourse.org/u/anon25879736)\
**Post date:** [Julho 9, 2015, 2:27pm UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/4 "2015-07-09T14:27:08Z")

</div>

> [@jtbayly](#):
>
> So isn’t that what the Category and Replies columns should do too, then?

I believe so, but that would probably be a question for @sam. If I recall correctly, the full page search is one of his projects.

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [Julho 9, 2015, 2:28pm UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/5 "2015-07-09T14:28:10Z")

</div>

> [@jtbayly](#):
>
> So isn’t that what the Category and Replies columns should do too, then?

If those options existed, it would do that. Right now those extra filters do not exist.

---

<div class="post-metadata">

**Author:** ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)\
**Post date:** [Julho 9, 2015, 2:29pm UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/6 "2015-07-09T14:29:09Z")

</div>

If not, then those columns should not be links (that do nothing). I can see no reason why sorting by those shouldn’t be added though.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Julho 27, 2015, 9:34am UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/7 "2015-07-27T09:34:48Z")

</div>

No longer relevant as the full page search is in its own home, with a much more “google” like style.

category grouping and the like is going to have to fit into advanced search tokens.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Julho 27, 2015, 9:34am UTC](https://meta.discourse.org/t/sort-by-category-and-replies-doesnt-work-in-search-results/30925/8 "2015-07-27T09:34:51Z")

</div>


