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(9mo ago)06MITPHPPHP ^8.0

Since Aug 31Pushed 9mo 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 3w ago

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

28

—

LowBetter than 52% of packages

Maintenance56

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

296d 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

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

328482.0k25](/packages/codewithdennis-filament-select-tree)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3141.2M25](/packages/ysfkaya-filament-phone-input)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

128173.7k3](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

57301.3k3](/packages/creagia-filament-code-field)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12451.0k](/packages/jibaymcs-filament-tour)[rawilk/filament-password-input

Enhanced password input component for filament.

52250.4k11](/packages/rawilk-filament-password-input)

PHPackages © 2026

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