huseyinfiliz/sort-changer

Change default discussion sort order in Flarum

Installs: 495

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 0

Forks: 0

Open Issues: 1

Language:JavaScript

Type:flarum-extension

pkg:composer/huseyinfiliz/sort-changer

v2 2026-01-20 10:20 UTC

This package is auto-updated.

Last update: 2026-01-20 10:35:22 UTC


README

License Latest Stable Version Total Downloads

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)
  • ⚡ Seamless user experience

Installation

Install with composer:

composer require huseyinfiliz/sort-changer

Updating

composer update huseyinfiliz/sort-changer
php flarum cache:clear

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
  • 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+