PHPackages                             halowahyudi/filament-sort-order - 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. halowahyudi/filament-sort-order

ActiveLibrary

halowahyudi/filament-sort-order
===============================

This is my package filament-sort-order

v1.1.7(6mo ago)00MITPHPPHP ^8.2

Since Nov 6Pushed 6mo agoCompare

[ Source](https://github.com/halowahyudi/filament-sort-order)[ Packagist](https://packagist.org/packages/halowahyudi/filament-sort-order)[ Docs](https://github.com/halowahyudi/filament-sort-order)[ RSS](/packages/halowahyudi-filament-sort-order/feed)WikiDiscussions main Synced 1mo ago

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

Filament Sort Order
===================

[](#filament-sort-order)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2a3ed4dbad5f077ad8767447a430079855e44b94726bb205c35f561eeb73f834/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6962726168696d626f7567616f75612f66696c616d656e742d736f72742d6f726465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ibrahimbougaoua/filament-sort-order)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a946ff4cd2d2b8933d7c94092b21812cff9e7d21ef073107bb89107db47944b8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6962726168696d626f7567616f75612f66696c616d656e742d736f72742d6f726465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ibrahimbougaoua/filament-sort-order/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ecf5a4f8fc91a700c3619efa0d86205f12a06376c1af08b3dd7e6be548d67b12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6962726168696d626f7567616f75612f66696c616d656e742d736f72742d6f726465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ibrahimbougaoua/filament-sort-order)

Transform the sorting order of any table effortlessly by installing this package. It provides seamless functionality without requiring any manual code writing. Simply install it, and you're good to go !

Support us
----------

[](#support-us)

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://buymeacoffee.com/ibrahimbougaoua)

[Youtube Video](https://www.youtube.com/watch?v=Uq7rSJSuWlw)

[![](https://raw.githubusercontent.com/ibrahimBougaoua/screenshot/main/images/sort.png)](https://www.youtube.com/watch?v=Uq7rSJSuWlw)

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

[](#installation)

You can install the package via composer:

```
composer require ibrahimbougaoua/filament-sort-order
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-sort-order-config"
```

This is the contents of the published config file:

```
return [

    /** Add the tables to be migrated */
    'tables' => [
        'users',
    ],

    /* The column name to be used for sorting */
    'sort_column_name' => 'sort_column',

    /* Sort Order asc or desc */
    'sort' => 'asc',
];
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-sort-order-migrations"
php artisan migrate
```

**Usage :**

Add **SortOrder** to model.

```
class User extends Model
{
    use SortOrder;
    .....
}
```

In User Resource

```
->actions([
	DownStepAction::make(),
	UpStepAction::make(),
])
->defaultSort('sort_order', 'asc');
```

Note :
------

[](#note-)

The name of the field that is created in the table after installation is **sort\_order**.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Ibrahim](https://github.com/ibrahimBougaoua)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance68

Regular maintenance activity

Popularity0

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/867b6f69c43bcd3f7db956bd87b1efe1af810f4933c62c78489aecb292f11203?d=identicon)[fajrinspendoe](/maintainers/fajrinspendoe)

---

Top Contributors

[![ibrahimBougaoua](https://avatars.githubusercontent.com/u/41789518?v=4)](https://github.com/ibrahimBougaoua "ibrahimBougaoua (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")[![halowahyudi](https://avatars.githubusercontent.com/u/102675086?v=4)](https://github.com/halowahyudi "halowahyudi (4 commits)")[![KalimeroMK](https://avatars.githubusercontent.com/u/24772657?v=4)](https://github.com/KalimeroMK "KalimeroMK (3 commits)")[![threeel](https://avatars.githubusercontent.com/u/680311?v=4)](https://github.com/threeel "threeel (2 commits)")[![JanVDB2000](https://avatars.githubusercontent.com/u/90693052?v=4)](https://github.com/JanVDB2000 "JanVDB2000 (2 commits)")[![jcc5018](https://avatars.githubusercontent.com/u/21000134?v=4)](https://github.com/jcc5018 "jcc5018 (1 commits)")

---

Tags

laravelibrahimBougaouafilament-sort-order

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/halowahyudi-filament-sort-order/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)

PHPackages © 2026

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