PHPackages                             harman/filament-nav-sort - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. harman/filament-nav-sort

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

harman/filament-nav-sort
========================

Sorts Filament navigation items

v1.0.0(6mo ago)06MITPHPPHP ^8.0

Since Aug 31Pushed 6mo agoCompare

[ Source](https://github.com/harman-codes/filament-nav-sort)[ Packagist](https://packagist.org/packages/harman/filament-nav-sort)[ Docs](https://github.com/harman-codes/filament-nav-sort)[ RSS](/packages/harman-filament-nav-sort/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Description
===========

[](#description)

Sorts Filament navigation items in the sidebar. Super light weight and easy to use.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require harman/filament-nav-sort
```

and publish the config file using the following command:

```
php artisan vendor:publish --provider="Harman\FilamentNavSort\FilamentNavSortServiceProvider"
```

Usage
-----

[](#usage)

### Step 1

[](#step-1)

Add **HasNavSort** trait to all the filament resources and pages.

```
use Harman\FilamentNavSort\HasNavSort;
class UserResource extends Resource
{
    use HasNavSort;
//--
```

```
use Harman\FilamentNavSort\HasNavSort;
class Settings extends Page
{
    use HasNavSort;
//--
```

### Step 2

[](#step-2)

Create an Enum anywhere in your laravel project. For Example : You can create a php file in the directory : "App → Filament → Enums → NavSortEnum.php" and create an enum like this:

```
namespace App\Filament\Enums;
enum NavSortEnum
{
    case UserResource;
    case Settings;
    case News;
    case TestPage;
    //--
    //Add all the resources and pages classnames here
}
```

use classname of resource or page as the case.
For example (For Resources) : UserResource, PostResource, CategoryResource etc.
For example (For Pages) : Settings, Author, AuthorPage, TestPage, SettingsPage etc. \\

**Important:** Arrange the cases in the enum in the order you want them to appear in the navigation.

### Step 3

[](#step-3)

Open config/filament-nav-sort.php and add the enum to the config file.

```
use App\Filament\Enums\NavSortEnum;
return [
    'enum' => [
        NavSortEnum::class
    ]
];
```

OR

```
return [
    'enum' => [
        App\Filament\Enums\NavSortEnum::class
    ]
];
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 70% of packages

Maintenance66

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

205d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88c32cde929f5951ad0eea953abaccca708747d2a088b00cdff3e63524e00512?d=identicon)[harman](/maintainers/harman)

---

Top Contributors

[![harman-codes](https://avatars.githubusercontent.com/u/50082974?v=4)](https://github.com/harman-codes "harman-codes (5 commits)")

---

Tags

laravelfilamentharman-codesfilament-nav-sort

### Embed Badge

![Health badge](/badges/harman-filament-nav-sort/health.svg)

```
[![Health](https://phpackages.com/badges/harman-filament-nav-sort/health.svg)](https://phpackages.com/packages/harman-filament-nav-sort)
```

###  Alternatives

[awcodes/filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.

263787.4k5](/packages/awcodes-filament-table-repeater)[tapp/filament-auditing

Filament Laravel Auditing plugin.

112347.0k2](/packages/tapp-filament-auditing)[webbingbrasil/filament-maps

Map components for Filament.

7831.1k](/packages/webbingbrasil-filament-maps)[hasan-ahani/filament-otp-input

Otp input for filament

2676.8k](/packages/hasan-ahani-filament-otp-input)[amendozaaguiar/filament-route-statistics

Filament route statictics viewer

3224.7k1](/packages/amendozaaguiar-filament-route-statistics)[spatie/filament-simple-stats

Opinionated prebuilt stat widgets to quickly add to your Filament dashboards.

2315.6k](/packages/spatie-filament-simple-stats)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
