⚠️ Sort Changer - Compatibility Notice
This extension originally started as an experiment to see if changing Flarum's default sort behavior was even possible. It took a lot of effort to turn what began as a simple extend.php snippet into a functioning extension.
The core problem is that Flarum doesn't include a query parameter for "Latest" it's the hardcoded default. When I tried to add one myself, it introduced other issues. Every time I tried to bypass one problem, another one surfaced.
For example, there was an incompatibility with FoF Byōbu. I fixed that. Now I've discovered that when the extension is enabled, the first option in the homepage every dropdown becomes unclickable. Since I haven't received any bug reports about this obvious issue from users, I can only assume that people have quietly stopped using the extension.
The reality is that every released version of Sort Changer has had unresolvable issues, and it struggles with each Flarum version. Unless Flarum core adds a proper query parameter for "Latest" sorting, fixing one problem will always create another.
I do not recommend installing this extension at this time.
I haven't completely abandoned it, but I want to be upfront about its current incompatibility. If I find the time in the future, I'll put more effort into finding a proper solution.
Thank you to everyone who has tried and supported this extension.