# Discourse Post Sorting Customizer

**URL:** https://meta.discourse.org/t/discourse-post-sorting-customizer/168267
**Category:** Plugin
**Tags:** broken
**Created:** [October 26, 2020, 12:05pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267 "2020-10-26T12:05:38Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [October 26, 2020, 12:05pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/1 "2020-10-26T12:05:38Z")

</div>

The [discourse-post-sorting-customizer](https://github.com/jahan-ggn/discourse-post-sorting-customizer) allows user to sort the topic posts based on 3 variants **active, oldest, and likes**

**Installation**  
Install the plugin by following the [Install Plugin](https://meta.discourse.org/t/install-plugins-in-discourse/19157) instructions. The plugin’s repository address is  
`https://github.com/jahan-ggn/discourse-post-sorting-customizer`

**About**

1. **Active:** allows user to sort the posts that are answered recently
2. **Oldest:** allows user to sort the posts that were answered long ago
3. **Likes:** allows user to sort the posts based on likes that are being on posts

**Note**  
By default, the plugin is disabled, to make use of the plugin the site administrator has to enable the plugin through a site setting named `discourse_post_sorting_customizer_enabled`

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [October 26, 2020, 12:07pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/2 "2020-10-26T12:07:04Z")

</div>

@angus any thoughts to use it in Question Answer plugin?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [October 26, 2020, 11:31pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/3 "2020-10-26T23:31:20Z")

</div>

Nice work! Yes, I guess you could use it with the question answer plugin. I’m guessing you based the lists “Active”, “Oldest” and “Likes” on the similar post list sorting options in StackOverflow? Have you tested it out with the QnA plugin? Is there a community who needs this right now? It’d be good to see this in a real community first.

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [October 27, 2020, 9:04am UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/4 "2020-10-27T09:04:11Z")

</div>

Yes, I have tested with the QnA plugin it is working properly but there it will be required separately to decorate `answer count ` for a perfect view that’s it

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [October 27, 2020, 12:43pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/5 "2020-10-27T12:43:07Z")

</div>

Now the plugin is compatible with the `discourse-solved` plugin. When the user will select the post sorting variant and the topic has a post as a solution then it will showed first then rest of the posts will be sorted according to the sorting variant selected by the user.

---

<div class="post-metadata">

### Author: ![c00bt00p](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/c00bt00p/32/203857_2.png) [@c00bt00p](https://meta.discourse.org/u/c00bt00p)
#### Post date: [February 15, 2021, 5:07pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/6 "2021-02-15T17:07:40Z")

</div>

@jahan_gagan Thank you for this great plugin. This is very helpful for users to sort a large amount of replies and find what he wants.

Will it possible to make plugin category specific? only works in certain categories?  
Also, does it make sense to add a feature to sort the posts by “users I liked” or “users I followed”?  
“user follow” is a plugin angus developed. I think “users I liked” is sufficient. Thanks.

---

<div class="post-metadata">

### Author: ![oshyan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oshyan/32/212644_2.png) [@oshyan](https://meta.discourse.org/u/oshyan)
#### Post date: [March 28, 2022, 5:15pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/7 "2022-03-28T17:15:36Z")

</div>

This seems like a very useful set of options to have, especially to sort by _oldest_. I’d love to see that in core, really.

In the meantime, before I adopt and start depending on this plugin, I wanted to ask if any of the layout changes being made in core are likely to affect this plugin. I ask because it hasn’t been updated in over a year, so I just want to make sure it would be updated/fixed if any problems show up. 🙏

---

<div class="post-metadata">

### Author: ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)
#### Post date: [May 18, 2022, 6:54pm UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/8 "2022-05-18T18:54:04Z")

</div>

I’m excited to try this out. I’m also curious how easy you think it would be to add the ability to sort topics alphabetically, both ascending and descending, as there has been many requests for this: [Sort display of topics Alphabetically](https://meta.discourse.org/t/feature-request-sort-display-of-topics-alphabetically/53911), [Sort topics in user-defined/alphabetical order](https://meta.discourse.org/t/sort-topics-in-user-defined-alphabetical-order/118216), [Sort topics (within category) in alphabetical order by default](https://meta.discourse.org/t/sort-topics-within-category-in-alphabetical-order-by-default/25350), [Call me stupid - how do I sort topics by created date or by title?](https://meta.discourse.org/t/call-me-stupid-how-do-i-sort-topics-by-created-date-or-by-title/83684), and maybe more.

Do you think it would be easy to add the sort alphabetically option?

* * *

Also, a heads up, I just tried to install it and got an error saying `Gem::LoadError: can't activate request_store-1.5.0, already activated request_store-1.5.1`. I have a lot of plugins installed so I’m not sure which one may have already activated it, just wanted to let you know.

Here’s the full message:

```plaintext
I, [2022-05-18T19:22:03.185295 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Gem::LoadError: can't activate request_store-1.5.0, already activated request_store-1.5.1
/var/www/discourse/lib/plugin_gem.rb:27:in `load'
/var/www/discourse/lib/plugin/instance.rb:773:in `gem'
/var/www/discourse/plugins/discourse-post-sorting-customizer/plugin.rb:14:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:679:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:679:in `activate!'
/var/www/discourse/lib/discourse.rb:279:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:276:in `each'
/var/www/discourse/lib/discourse.rb:276:in `activate_plugins!'
/var/www/discourse/config/application.rb:222:in `block in <class:Application>'
/var/www/discourse/lib/plugin.rb:6:in `initialization_guard'
/var/www/discourse/config/application.rb:221:in `<class:Application>'
/var/www/discourse/config/application.rb:81:in `<module:Discourse>'
/var/www/discourse/config/application.rb:80:in `<top (required)>'
/var/www/discourse/Rakefile:7:in `require'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'

```

---

<div class="post-metadata">

### Author: ![sudoanand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sudoanand/32/321771_2.png) [@sudoanand](https://meta.discourse.org/u/sudoanand)
#### Post date: [August 21, 2023, 4:03am UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/9 "2023-08-21T04:03:11Z")

</div>

Facing the same error:

Gem::LoadError: can’t activate request\_store-1.5.0, already activated request\_store-1.5.1

---

<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: [August 21, 2023, 4:08am UTC](https://meta.discourse.org/t/discourse-post-sorting-customizer/168267/10 "2023-08-21T04:08:42Z")

</div>

Hello and welcome @sudoanand 🙂

This plugin has the #broken tag so I’m afraid it isn’t currently expected to work.
