Discourse Post Sorting Customizer

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: Feature request: Sort display of topics Alphabetically, Sort topics in user-defined/alphabetical order, Sort topics (within category) in alphabetical order by default, Call me stupid - how do I sort topics by created date or by title?, 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:

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>'
1 Like