huseyinfiliz / sort-changer
Change default discussion sort order in Flarum
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Language:JavaScript
Type:flarum-extension
Requires
- flarum/core: ^1.8.1
This package is not auto-updated.
Last update: 2025-09-01 15:18:16 UTC
README
A Flarum extension that allows you to change the default discussion sort order.
Features
- 🎯 Set default sort order (Latest, Top, Newest, Oldest)
- 🏠 Works only on homepage (not on tag or search pages)
- 🔗 Clean URLs for default sort option
- ⚡ Seamless user experience
Installation
Install with composer:
composer require huseyinfiliz/sort-changer
Updating
composer update huseyinfiliz/sort-changer php flarum cache:clear
Configuration
- Enable the extension in admin panel
- Go to extension settings
- Select your preferred default sort order:
- Latest: Shows discussions with most recent replies
- Top: Shows most popular discussions
- Newest: Shows newest created discussions
- Oldest: Shows oldest created discussions
- Save changes
How it Works
- Sets the default sort order when users first visit your forum homepage
- Users can still change the sort order manually using the dropdown
- Clean URLs: Hides the sort parameter when the default option is selected
- Only applies to the main index page (doesn't affect tag or search pages)
Compatibility
- Flarum: 1.8.1+
- PHP: 8.1+
- MySQL: 5.6+/8.0.23+ or MariaDB: 10.0.5+
- Works with both Nginx and Apache