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

Since Aug 31Pushed 8mo 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 1mo 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

30

—

LowBetter than 64% of packages

Maintenance64

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

251d 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.

320392.1k17](/packages/codewithdennis-filament-select-tree)[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[dotswan/filament-map-picker

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

124139.3k2](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

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

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

12247.8k](/packages/jibaymcs-filament-tour)[aymanalhattami/filament-context-menu

context menu (right click menu) for filament

9838.0k](/packages/aymanalhattami-filament-context-menu)

PHPackages © 2026

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